Repository navigation
Commit 6a0bcb4
committed
ci: fix npm publish — use Node 24 instead of upgrading npm in place
`npm install -g npm@latest` overwrites the npm shipped in the runner's
toolcache. With recent npm releases this leaves npm's own bundled
dependencies half-replaced, and `npm publish --provenance` then fails
with:
npm error code MODULE_NOT_FOUND
npm error Cannot find module 'sigstore'
The step existed because Trusted Publishing (OIDC) requires npm >= 11.5.1
and Node 22 ships npm 10.x. Node 24 already bundles npm 11.x, so the
in-place upgrade is unnecessary. Bump the runtime and drop the step.
This broke between 2026-05-22 (last successful publish) and today, from a
new npm release rather than from any change in this repository. No
package was published by the failed run: npm still serves 1.0.6.1 parent 50d08a3 commit 6a0bcb4
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
0 commit comments