Skip to content

Commit ffb787e

Browse files
committed
workflow: update
1 parent d5fd8fd commit ffb787e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@ jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12+
# 1. checkout 仓库
1213
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
14-
with:
15-
node-version: 16
16-
cache: 'pnpm' # 配置缓存,优化安装性能
1714

1815
# 2. 设置pnpm包管理器
1916
- name: Install pnpm
2017
uses: pnpm/action-setup@v2
2118
with:
2219
version: 8
2320

21+
# 3. 设置pnpm包管理器
22+
- uses: actions/setup-node@v3
23+
with:
24+
node-version: 16
25+
cache: 'pnpm' # 配置缓存,优化安装性能
26+
2427
- name: build
2528
run: pnpm install && pnpm run build:github # 部署至GitHub需要配置,base路径
2629

0 commit comments

Comments
 (0)