Commit cd4b025
authored
ci: fix npm OIDC — upgrade npm for trusted publishing support (#85)
npm OIDC trusted publishing requires npm >= 11.5.1 (Node 22's bundled
npm is older).
- Add `npm install -g npm@latest` before publish
- Remove token clearing hack
- Remove `--provenance` flag (automatic with OIDC)
- No NPM_TOKEN needed
Refs: [npm docs](https://docs.npmjs.com/trusted-publishers/),
[guide](https://remarkablemark.org/blog/2025/12/19/npm-trusted-publishing/)1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments