Skip to content

Commit

Permalink
workflow: update
Browse files Browse the repository at this point in the history
  • Loading branch information
JS-banana committed Sep 21, 2023
1 parent ff85ca3 commit d5fd8fd
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,20 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm' # 配置缓存,优化安装性能

# 2. 设置pnpm包管理器
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: build
run: npm install && npm run build:github # 部署至GitHub需要配置,base路径
run: pnpm install && pnpm run build:github # 部署至GitHub需要配置,base路径

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down

0 comments on commit d5fd8fd

Please sign in to comment.