Commit 24e00ea
chore: switch npm publish from token auth to OIDC trusted publishers
Replace NPM_TOKEN-based authentication with npm's OIDC trusted
publishers. This eliminates the need for a long-lived npm token secret
and adds provenance attestation to published packages.
Changes:
- publish-npm.yml: add id-token:write permission, setup-node with
registry-url, remove NPM_TOKEN env
- bin/publish-npm: remove npm config set for auth token, switch from
yarn publish to npm publish --provenance --access public
- bin/check-release-environment: remove NPM_TOKEN check (no longer
needed)
- release-doctor.yml: remove NPM_TOKEN env
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 1061df9 commit 24e00ea
File tree
4 files changed
+10
-27
lines changed- .github/workflows
- bin
4 files changed
+10
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | | - | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
31 | | - | |
32 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 3 | + | |
| 4 | + | |
20 | 5 | | |
21 | 6 | | |
22 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
60 | | - | |
61 | | - | |
| 58 | + | |
| 59 | + | |
0 commit comments