Skip to content

Upgrade to Yarn 4.5.3 and Node.js 20 #41

Upgrade to Yarn 4.5.3 and Node.js 20

Upgrade to Yarn 4.5.3 and Node.js 20 #41

name: deploy-github-pages
on:
push:
branches:
- main
jobs:
deploy-github-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup build environment
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Enable corepack and upgrade Yarn
run: |
corepack enable
yarn set version ./.yarn/releases/yarn-4.5.3.cjs
- name: Install dependencies
run: yarn install --immutable
- name: Check code style
run: yarn gate
- name: Run tests
run: yarn test
- name: Build app
run: yarn build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
force_orphan: true