Skip to content

Commit 646ca90

Browse files
guo-yuclaude
andcommitted
fix(ci): switch to node 24 for release — node 22.22.2 npm is broken
Node 22.22.2 cached by actions/setup-node ships with corrupted npm (missing promise-retry module). Node 24 works fine — matches other projects (mails, etc.) that publish successfully. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 907feb3 commit 646ca90

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,9 @@ jobs:
1515
- uses: pnpm/action-setup@v4
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: 22
18+
node-version: 24
1919
registry-url: https://registry.npmjs.org
20-
- name: Upgrade npm (bundled npm on runner image 20260406+ is broken)
21-
run: |
22-
# Pre-installed npm has missing promise-retry module, so we can't use
23-
# `npm install -g npm@latest` directly. Reinstall npm's own deps first.
24-
cd "$(npm root -g)/npm" && node bin/npm-cli.js install --ignore-scripts 2>/dev/null || true
25-
npm install -g npm@latest
20+
- run: npm install -g npm@latest
2621
- run: pnpm install --frozen-lockfile
2722
- run: pnpm --filter @sandbank.dev/core build
2823
- run: pnpm build

0 commit comments

Comments
 (0)