Skip to content

Commit 077dba7

Browse files
ci: run on Node 20/22 (vitest 4 toolchain needs Node 20+)
The vitest 4 / rolldown test toolchain imports `styleText` from node:util, which only exists on Node 20+, so the test step fails on Node 18. The published CLI bundle still targets Node 18; CI builds and tests on the versions the dev toolchain supports. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 5c9e761 commit 077dba7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
node: ["18", "20", "22"]
21+
# The dev/test toolchain (vitest 4 via rolldown) requires Node 20+
22+
# (it imports `styleText` from node:util, added in Node 20). The published
23+
# CLI bundle still targets Node 18, but CI builds and tests on 20/22.
24+
node: ["20", "22"]
2225
steps:
2326
- name: Checkout
2427
uses: actions/checkout@v4

0 commit comments

Comments
 (0)