chore: update actions from npm to yarn #147
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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: yarn ci | |
- name: Lint | |
run: yarn eslint --ext .js,.jsx src | |
# - name: Run unit tests | |
# run: npm run test:unit | |
- name: Build | |
run: | | |
yarn run build:prod | |
cp dist/index.html dist/404.html | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
publish_branch: gh-pages |