chore: cleanup #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull request checks | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
verify_build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'npm' | |
- name: π₯ Install dependencies | |
run: npm ci | |
- name: π¨ Build projects | |
run: npm run build | |
- name: π§ͺ Run unit tests | |
run: npm run test | |
- name: π Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: π Create docs | |
run: npm run docs | |
- name: π Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: './docs' | |
- name: π Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 | |