We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff85ca3 commit d5fd8fdCopy full SHA for d5fd8fd
.github/workflows/deploy.yml
@@ -9,11 +9,20 @@ jobs:
9
build-and-deploy:
10
runs-on: ubuntu-latest
11
steps:
12
- - name: checkout
13
- uses: actions/checkout@v2
+ - uses: actions/checkout@v3
+ - 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
22
+ version: 8
23
24
- name: build
- run: npm install && npm run build:github # 部署至GitHub需要配置,base路径
25
+ run: pnpm install && pnpm run build:github # 部署至GitHub需要配置,base路径
26
27
- name: Deploy
28
uses: peaceiris/actions-gh-pages@v3
0 commit comments