Update node to v20 #12
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: Deploy static to GitHub pages | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check-all: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm ci | |
run: npm ci | |
- name: lint, test, build, then e2e | |
run: npm run pre-push | |
- name: Github Pages Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/main'}} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.no-reply.github.com' |