Skip to content

Commit ea18ec1

Browse files
committed
ci(release): use node 24 (ships npm 11.x) instead of upgrade-in-place
Previous attempt did 'npm install -g npm@latest' on node 22's bundled npm 10.x to get Trusted Publishing OIDC support. The self-upgrade broke partway, leaving npm without 'promise-retry' (CI run 25705962229). Node 24 ships with npm 11.x natively, which has TP/OIDC support built in. Bumping the node-version pin removes the entire upgrade-step risk class — no in-CI npm-on-npm install needed. Re-dispatch release.yml against v0.8.9 after this lands.
1 parent b53bd8b commit ea18ec1

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,15 @@ jobs:
4646
exit 1
4747
}
4848
49+
# Trusted Publishing (OIDC auth) requires npm >= 11.5.1. node 22
50+
# ships npm 10.x; node 24 ships npm 11.x natively, avoiding the
51+
# broken `npm install -g npm@latest` self-upgrade path (lost
52+
# promise-retry mid-install in CI run 25705962229).
4953
- uses: actions/setup-node@v5
5054
with:
51-
node-version: 22
55+
node-version: 24
5256
registry-url: https://registry.npmjs.org
5357

54-
# Trusted Publishing requires npm >= 11.5.1. node 22 ships with 10.x,
55-
# so upgrade before publishing. OIDC flow then auths via the trusted
56-
# publisher configured at npmjs.com/package/<name>/access.
57-
- name: Upgrade npm for Trusted Publishing
58-
run: npm install -g npm@latest
59-
6058
- name: Run tests
6159
run: npm test
6260

0 commit comments

Comments
 (0)