Skip to content

Update node to v20

Update node to v20 #12

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'