Commit efd7ad2
Support OIDC authentication for NPM publishing (#52)
* Support OIDC authentication for NPM publishing
NPM has deprecated classic tokens, so this adds support for OIDC
authentication (Trusted Publishers) as an alternative to NPM_TOKEN.
- Make NPM_TOKEN optional - only configure .npmrc when provided
- For OIDC, npm handles auth automatically via GitHub's OIDC provider
- Add documentation for OIDC setup in README
- Bump version to 0.0.16
Fixes #50
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Remove NPM_TOKEN support, require OIDC authentication
- Change OIDC from "recommended" to "required"
- Add npm CLI 11.5.2+ version requirement for OIDC
- Remove NPM_TOKEN workflow example and documentation
- Remove NPM_TOKEN handling code from index.ts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Bump version to 0.1.0 for breaking changes
Minor version bump per SemVer conventions for pre-1.0.0 breaking changes.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Keep NPM_TOKEN support for backwards compatibility
Mark NPM_TOKEN as deprecated but still functional for external users
who may have valid tokens.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Remove NPM_TOKEN support completely
OIDC authentication is now the only supported method for npm publishing.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent e319ccb commit efd7ad2
4 files changed
Lines changed: 32 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
29 | 38 | | |
30 | 39 | | |
31 | 40 | | |
32 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
33 | 48 | | |
34 | 49 | | |
35 | 50 | | |
36 | 51 | | |
37 | | - | |
| 52 | + | |
38 | 53 | | |
39 | 54 | | |
40 | 55 | | |
| |||
75 | 90 | | |
76 | 91 | | |
77 | 92 | | |
78 | | - | |
| 93 | + | |
79 | 94 | | |
80 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
81 | 102 | | |
82 | 103 | | |
83 | 104 | | |
| |||
107 | 128 | | |
108 | 129 | | |
109 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
110 | 136 | | |
111 | 137 | | |
112 | 138 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 191 | | |
207 | 192 | | |
208 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments