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 d5fd8fd commit ffb787e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# 1. checkout 仓库
- 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

# 3. 设置pnpm包管理器
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm' # 配置缓存,优化安装性能

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

Expand Down

0 comments on commit ffb787e

Please sign in to comment.