File tree 2 files changed +14
-18
lines changed
2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -50,21 +50,19 @@ jobs:
50
50
fetch-depth : 0
51
51
52
52
- name : Setup pnpm
53
- uses : pnpm/action-setup@v2
54
- with :
55
- # choose pnpm version to use
56
- version : 8
57
- # install deps with pnpm
58
- run_install : true
53
+ uses : pnpm/action-setup@v4
59
54
60
55
- name : Setup Node.js
61
56
uses : actions/setup-node@v4
62
57
with :
63
58
# choose node.js version to use
64
- node-version : 20
59
+ node-version : 22
65
60
# cache deps for pnpm
66
61
cache : pnpm
67
62
63
+ - name : Install deps
64
+ run : pnpm install --frozen-lockfile
65
+
68
66
# run build script
69
67
- name : Build VuePress site
70
68
run : pnpm docs:build
Original file line number Diff line number Diff line change @@ -49,29 +49,27 @@ jobs:
49
49
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
50
50
fetch-depth : 0
51
51
52
- - name : Setup pnpm
53
- uses : pnpm/action-setup@v2
54
- with :
55
- # 选择要使用的 pnpm 版本
56
- version : 8
57
- # 使用 pnpm 安装依赖
58
- run_install : true
52
+ - name : 设置 pnpm
53
+ uses : pnpm/action-setup@v4
59
54
60
- - name : Setup Node.js
55
+ - name : 设置 Node.js
61
56
uses : actions/setup-node@v4
62
57
with :
63
58
# 选择要使用的 node 版本
64
- node-version : 20
59
+ node-version : 22
65
60
# 缓存 pnpm 依赖
66
61
cache : pnpm
67
62
63
+ - name : 安装依赖
64
+ run : pnpm install --frozen-lockfile
65
+
68
66
# 运行构建脚本
69
- - name : Build VuePress site
67
+ - name : 构建 VuePress 站点
70
68
run : pnpm docs:build
71
69
72
70
# 查看 workflow 的文档来获取更多信息
73
71
# @see https://github.com/crazy-max/ghaction-github-pages
74
- - name : Deploy to GitHub Pages
72
+ - name : 部署到 GitHub Pages
75
73
uses : crazy-max/ghaction-github-pages@v4
76
74
with :
77
75
# 部署到 gh-pages 分支
You can’t perform that action at this time.
0 commit comments