Commit b06d9a3
committed
fix(publish): gate --provenance on GITHUB_ACTIONS to unbreak local runs
`npm publish --provenance` requires the GitHub Actions OIDC
id-token endpoint — running the script locally (non-dry-run) fails
with "Provenance generation in GitHub Actions requires
'id-token: write' permission".
Guarded the flag behind `process.env.GITHUB_ACTIONS === 'true'` so
local emergency publishes still work. CI runs unchanged.
Same fix landed in stuie + socket-registry + socket-sdk-js in
parallel commits.1 parent b35a716 commit b06d9a3
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
257 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
258 | 262 | | |
259 | 263 | | |
260 | 264 | | |
| |||
396 | 400 | | |
397 | 401 | | |
398 | 402 | | |
399 | | - | |
| 403 | + | |
400 | 404 | | |
401 | 405 | | |
402 | 406 | | |
| |||
407 | 411 | | |
408 | 412 | | |
409 | 413 | | |
410 | | - | |
| 414 | + | |
411 | 415 | | |
412 | | - | |
413 | | - | |
| 416 | + | |
| 417 | + | |
414 | 418 | | |
415 | 419 | | |
416 | 420 | | |
| |||
0 commit comments