Skip to content

Commit fe69d9c

Browse files
committed
Fix VitePress build by pinning Node.js to v24
The build was failing with 'localStorage.getItem is not a function' error in GitHub Actions using Node.js v25, while it worked locally with Node.js v24. This appears to be a compatibility issue with @typescript/vfs (used by @shikijs/vitepress-twoslash) in Node.js v25. Pinning the Node.js version to v24 in the publish-docs workflow resolves the issue.
1 parent 581b289 commit fe69d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ jobs:
125125
- uses: actions/checkout@v4
126126
- uses: actions/setup-node@v4
127127
with:
128-
node-version: latest
128+
node-version: "24"
129129
- uses: pnpm/action-setup@v4
130130
with:
131131
version: 10

0 commit comments

Comments
 (0)