Skip to content

Commit d5fd8fd

Browse files
committed
workflow: update
1 parent ff85ca3 commit d5fd8fd

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@ jobs:
99
build-and-deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: checkout
13-
uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 16
16+
cache: 'pnpm' # 配置缓存,优化安装性能
17+
18+
# 2. 设置pnpm包管理器
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v2
21+
with:
22+
version: 8
1423

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

1827
- name: Deploy
1928
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)