Skip to content

Commit 8d234eb

Browse files
committed
update
1 parent 654834c commit 8d234eb

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/static.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ jobs:
6969
pnpm run gen-config
7070
7171
# === 新增步骤:强制升级 VuePress 核心以匹配插件 ===
72-
# - name: 环境 - 修复依赖版本冲突
73-
# working-directory: ./
74-
# run: |
75-
# echo "正在强制升级 vuepress 核心依赖..."
76-
# # 强制安装最新版本的 vuepress 核心,以匹配较新的插件
77-
# pnpm add -D vuepress@latest @vuepress/client@latest @vuepress/utils@latest
78-
# # 或者,如果你知道 plugin-blog 具体依赖哪个版本,可以指定,例如:
79-
# # pnpm add -D vuepress@2.0.0-rc.66
72+
- name: 环境 - 修复依赖版本冲突
73+
working-directory: ./
74+
run: |
75+
echo "正在强制升级 vuepress 核心依赖..."
76+
# 强制安装最新版本的 vuepress 核心,以匹配较新的插件
77+
pnpm add -D vuepress@latest @vuepress/client@latest @vuepress/utils@latest
78+
# 或者,如果你知道 plugin-blog 具体依赖哪个版本,可以指定,例如:
79+
# pnpm add -D vuepress@2.0.0-rc.66
8080
# ===============================================
8181

8282
# 文档的克隆、构建、部署。注意 `clone --depth 1` 只拉最近一次提交,减少时间
@@ -96,7 +96,8 @@ jobs:
9696
NODE_OPTIONS: --max_old_space_size=20480
9797
run: |-
9898
node -e 'console.log(v8.getHeapStatistics())'
99-
pnpm run docs:build
99+
# pnpm run docs:build
100+
pnpm exec vuepress build src
100101
> src/.vuepress/dist/.nojekyll
101102
102103
- name: 文档 - 部署

0 commit comments

Comments
 (0)