Skip to content

Commit 327c97d

Browse files
committed
ci: Node 20.11→20.19 修复 Hexo 8 的 ERR_REQUIRE_ESM 构建失败
Hexo 8 要求 Node>=20.19.0,其 ESM 依赖(strip-ansi 新版)在 20.11 下 require() 报错
1 parent c8a3a00 commit 327c97d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/deploy-pages.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
with:
2020
# Examples: 20, 18.19, >=16.20.2, lts/Iron, lts/Hydrogen, *, latest, current, node
2121
# Ref: https://github.com/actions/setup-node#supported-version-syntax
22-
node-version: "20.11.0"
22+
# Hexo 8 requires Node >= 20.19.0 (ESM deps break on older 20.x)
23+
node-version: "20.19.0"
2324
- name: Cache NPM dependencies
2425
uses: actions/cache@v4
2526
with:

0 commit comments

Comments
 (0)