Skip to content

Commit

Permalink
fix github action about node version from 16 to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ben99933 committed Feb 6, 2024
1 parent 929d5dd commit 26b0b9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3 # 更新为支持 Node.js 20 的版本

- name: Install dependencies and build
run: |
npm install
npm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4 # 更新为支持 Node.js 20 的版本
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist

0 comments on commit 26b0b9f

Please sign in to comment.