chore(deps): update dependency @types/react to v18.2.22 #1345
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: node | |
run: echo "##[set-output name=versoin;]$(cat .nvmrc)" | |
id: node | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "${{ steps.node.outputs.version }}" | |
- name: Build | |
run: | | |
npm ci | |
npm run build | |
cp dist/index.html dist/404.html | |
# https://www.smashingmagazine.com/2016/08/sghpa-single-page-app-hack-github-pages/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |