Commit 37e81a1
committed
switch npm publishing to trusted publishing (OIDC)
- Grant the job id-token: write (plus contents: read for the tag guard
and release-asset download); npm publish exchanges the GitHub OIDC
token for a short-lived per-publish credential and generates
provenance attestations automatically.
- Drop registry-url from setup-node: it writes an .npmrc authToken line
referencing $NODE_AUTH_TOKEN, and npm hard-fails on every command when
a referenced env var is unset.
- Bump to Node 24 (Node 20 is EOL) and pin npm@12.0.1 alongside the
existing semver pin — trusted publishing requires npm >= 11.5.1 and
the runner's bundled npm may lag.
- Remove NODE_AUTH_TOKEN from the publish step; no registry token is
referenced anywhere anymore.1 parent 19a4a56 commit 37e81a1
1 file changed
Lines changed: 22 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
64 | 71 | | |
65 | 72 | | |
66 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
67 | 78 | | |
68 | 79 | | |
69 | | - | |
70 | | - | |
| 80 | + | |
71 | 81 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
81 | 92 | | |
82 | 93 | | |
83 | 94 | | |
| |||
133 | 144 | | |
134 | 145 | | |
135 | 146 | | |
136 | | - | |
137 | | - | |
| |||
0 commit comments