fix(ci): bump Node to 22.18.0 for native TS config loading

Second CI run got past install but failed loading vite.config.ts: native TS
type-stripping (used by vite/oxlint to read .ts config) requires Node
^20.19.0 || >=22.18.0, and 22.13.0 is below that. 22.18.0 is the true floor —
it satisfies both pnpm (>=22.13) and TS config loading (>=22.18). Match
engines.node.
This commit is contained in:
Yunfei He
2026-05-29 14:42:42 +08:00
parent 1318f86888
commit bdf06ddf1f
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -30,14 +30,15 @@ jobs:
# voidzero-dev/setup-vp installs Node (via `vp env use`), the vp CLI, and
# — because run-install defaults to true — runs `vp install` in the repo
# root, so no separate install step is needed.
# node-version "22.13.0" is the lowest Node that satisfies the toolchain:
# engines.node says >=22.12.0, but pnpm@11 requires >=22.13, so 22.12.0
# fails `vp install`. 22.13.0 is the real supported floor.
# node-version "22.18.0" is the lowest Node that satisfies the whole
# toolchain: pnpm@11 needs >=22.13, and loading the .ts config files
# (native TS type-stripping, used by vite/oxlint) needs >=22.18.0.
# 22.18.0 is the real supported floor; engines.node matches.
# cache (off by default) caches the pnpm store; auto-detects pnpm-lock.yaml.
- name: Set up Vite+ (vp) and Node
uses: voidzero-dev/setup-vp@v1
with:
node-version: "22.13.0"
node-version: "22.18.0"
cache: true
# `ci` is the parallel verification graph defined in vite.config.ts