Commit 8ac9ed5
fix: use NPM_TOKEN for npm publish to support new packages
OIDC trusted publishing requires packages to already exist on the
npm registry. Use NPM_TOKEN (automation token) instead, which can
create new packages directly — matching how the original workflow
worked.
- Add `environment: npm-publish` to satisfy zizmor audit
- Add `NODE_AUTH_TOKEN` from `secrets.NPM_TOKEN` for publish steps
- Add `fail-fast: false` to build matrix to prevent one flaky build
from cancelling all others
Prerequisites:
1. Create an "npm-publish" environment in repo Settings → Environments
2. Add NPM_TOKEN secret to that environment (automation token from
npmjs.com @SocketSecurity org)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c295ef3 commit 8ac9ed5
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| 237 | + | |
236 | 238 | | |
237 | 239 | | |
238 | 240 | | |
| |||
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| 296 | + | |
| 297 | + | |
294 | 298 | | |
295 | 299 | | |
296 | 300 | | |
| |||
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
| 311 | + | |
| 312 | + | |
307 | 313 | | |
308 | 314 | | |
309 | 315 | | |
| |||
0 commit comments