Skip to content

Commit 7015170

Browse files
jaymaycryclaude
andcommitted
ci: bump publish job to Node 24 to escape broken npm toolcache on Node 22.22.2
The GitHub-hosted Node 22.22.2 image in the runner toolcache ships an npm install whose bundled `@npmcli/arborist` is missing `promise-retry`, so even `npm --version` aborts with MODULE_NOT_FOUND and the manual self-upgrade can't run (--force doesn't help — npm crashes before arguments are parsed). Node 24 has a clean toolcache and already ships npm 11.x, so the same upgrade step succeeds normally. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d004b53 commit 7015170

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Setup Node.js
4747
uses: actions/setup-node@v4
4848
with:
49-
node-version: '22'
49+
node-version: '24'
5050
registry-url: 'https://registry.npmjs.org'
5151
cache: 'yarn'
5252

@@ -56,8 +56,11 @@ jobs:
5656
- name: Build
5757
run: yarn prepare
5858

59-
- name: Upgrade npm (Trusted Publishing requires >= 11.5.1)
60-
run: npm install -g --force npm@latest
59+
- name: Ensure npm >= 11.5.1 (Trusted Publishing)
60+
run: |
61+
npm --version
62+
npm install -g npm@latest
63+
npm --version
6164
6265
- name: Publish
6366
run: npm publish --access public

0 commit comments

Comments
 (0)