File tree Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Expand file tree Collapse file tree 2 files changed +14
-18
lines changed Original file line number Diff line number Diff line change @@ -50,21 +50,19 @@ jobs:
5050 fetch-depth : 0
5151
5252 - 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
5954
6055 - name : Setup Node.js
6156 uses : actions/setup-node@v4
6257 with :
6358 # choose node.js version to use
64- node-version : 20
59+ node-version : 22
6560 # cache deps for pnpm
6661 cache : pnpm
6762
63+ - name : Install deps
64+ run : pnpm install --frozen-lockfile
65+
6866 # run build script
6967 - name : Build VuePress site
7068 run : pnpm docs:build
Original file line number Diff line number Diff line change @@ -49,29 +49,27 @@ jobs:
4949 # “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
5050 fetch-depth : 0
5151
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
5954
60- - name : Setup Node.js
55+ - name : 设置 Node.js
6156 uses : actions/setup-node@v4
6257 with :
6358 # 选择要使用的 node 版本
64- node-version : 20
59+ node-version : 22
6560 # 缓存 pnpm 依赖
6661 cache : pnpm
6762
63+ - name : 安装依赖
64+ run : pnpm install --frozen-lockfile
65+
6866 # 运行构建脚本
69- - name : Build VuePress site
67+ - name : 构建 VuePress 站点
7068 run : pnpm docs:build
7169
7270 # 查看 workflow 的文档来获取更多信息
7371 # @see https://github.com/crazy-max/ghaction-github-pages
74- - name : Deploy to GitHub Pages
72+ - name : 部署到 GitHub Pages
7573 uses : crazy-max/ghaction-github-pages@v4
7674 with :
7775 # 部署到 gh-pages 分支
You can’t perform that action at this time.
0 commit comments