Skip to content

Commit 70f0bfa

Browse files
committed
Update deploy-docs.yml to use updated actions and Node.js version
1 parent 0aed795 commit 70f0bfa

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,25 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
19-
with:
20-
fetch-depth: 0
21-
# 如果你文档需要 Git 子模块,取消注释下一行
22-
# submodules: true
18+
uses: actions/checkout@v4
2319

24-
- name: 安装 pnpm
25-
uses: pnpm/action-setup@v2
20+
# Install pnpm package manager / 安装 pnpm 包管理器
21+
- uses: pnpm/action-setup@v4
22+
name: Install pnpm
2623
with:
27-
run_install: true
28-
version: 8
24+
version: 10
25+
run_install: false
2926

30-
- name: 设置 Node.js
31-
uses: actions/setup-node@v3
27+
# Setup Node.js environment / 设置 Node.js 环境
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
3230
with:
33-
node-version: 18
34-
cache: pnpm
31+
node-version: '20' # Use Node.js 24 / 使用 Node.js 24
32+
cache: 'pnpm' # Cache pnpm dependencies / 缓存 pnpm 依赖
33+
34+
# Install project dependencies / 安装项目依赖
35+
- name: Install dependencies
36+
run: pnpm install
3537

3638

3739
- name: 构建文档

0 commit comments

Comments
 (0)