Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
官方弃用Node.js 12,更换其他脚本
  • Loading branch information
RiTian96 authored Feb 20, 2023
1 parent 611c942 commit aff6bd5
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install
uses: sergioramos/yarn-actions/install@v6
uses: borales/actions-yarn@v4
with:
frozen-lockfile: true
cmd: install
- name: Build
run: |
npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@v4
with:
ACCESS_TOKEN: ${{ secrets.TOKEN }}
BRANCH: gh-pages
FOLDER: dist
token: ${{ secrets.TOKEN }}
branch: gh-pages
folder: dist

0 comments on commit aff6bd5

Please sign in to comment.