Commit ad445dc
fix: fetch OIDC token and write to .npmrc before npm publish
publib's NPM_TRUSTED_PUBLISHER flag skips its own token check but does not
set up npm auth — it leaves ~/.npmrc empty and npm publish fails with
ENEEDAUTH. Patch the Release step to request a GitHub OIDC token with the
npm registry as audience and write it to ~/.npmrc before publib runs.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ff4d0b9 commit ad445dc
2 files changed
Lines changed: 25 additions & 2 deletions
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 | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
43 | 62 | | |
44 | 63 | | |
45 | 64 | | |
| |||
0 commit comments