File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments