Skip to content

Commit d9494f5

Browse files
committed
ci: node version
1 parent be315d3 commit d9494f5

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/npm_release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,16 @@ jobs:
5151
- name: Checkout release tag
5252
run: git checkout "refs/tags/${{ steps.version.outputs.version }}"
5353

54+
# Node 24 (LTS) bundles npm >= 11.5.1, which Trusted Publishing requires.
55+
# We deliberately do NOT `npm install -g npm@latest` on an older Node: that
56+
# self-upgrade corrupts the global npm on hosted runners and drops bundled
57+
# deps like `sigstore`, breaking `npm publish --provenance`
58+
# (npm/cli#9722). Using Node 24's stock npm avoids that entirely.
5459
- uses: actions/setup-node@v4
5560
with:
56-
node-version: 22
61+
node-version: 24
5762
registry-url: 'https://registry.npmjs.org'
5863

59-
# Node 22 ships npm ~10.x; Trusted Publishing requires npm >= 11.5.1.
60-
- name: Upgrade npm for Trusted Publishing
61-
run: npm install -g npm@latest
62-
6364
- name: Install dependencies
6465
run: npm ci
6566

0 commit comments

Comments
 (0)