Skip to content

Commit 4c86844

Browse files
authored
Merge pull request PKM-er#19 from LincDocs/main
ci: optimize workflow
2 parents d6537f1 + 8ffedbb commit 4c86844

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/static.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ jobs:
2626
ref: 'main' # 分支,旧raw
2727

2828
- name: 环境 - 安装 pnpm
29-
uses: pnpm/action-setup@v2
29+
uses: pnpm/action-setup@v4
3030
with:
3131
run_install: true
32-
version: 8
32+
version: 9
3333

3434
- name: 环境 - 设置 Node.js
35-
uses: actions/setup-node@v3
35+
uses: actions/setup-node@v4
3636
with:
37-
node-version: 20
37+
node-version: 22
3838
cache: pnpm
3939

4040
# 获取仓库的相关配置
@@ -82,7 +82,7 @@ jobs:
8282
8383
- name: 文档 - 构建
8484
env:
85-
NODE_OPTIONS: --max_old_space_size=10240
85+
NODE_OPTIONS: --max_old_space_size=20480
8686
run: |-
8787
node -e 'console.log(v8.getHeapStatistics())'
8888
pnpm run docs:build

0 commit comments

Comments
 (0)