Skip to content

fix(ci): use OIDC provenance for npm publish#4

Merged
bntvllnt merged 1 commit intomainfrom
fix/publish-oidc
Mar 25, 2026
Merged

fix(ci): use OIDC provenance for npm publish#4
bntvllnt merged 1 commit intomainfrom
fix/publish-oidc

Conversation

@bntvllnt
Copy link
Copy Markdown
Contributor

Summary

  • Upgrade npm to latest for OIDC token support
  • Strip _authToken placeholder from .npmrcsetup-node writes it and it blocks OIDC fallback
  • Switch from pnpm publish + NPM_TOKEN secret to npm publish --provenance
  • Add --ignore-scripts to skip redundant prepublishOnly build (already runs in explicit Build step)

Fixes both failed publish runs (v0.1.0, v0.1.1) that hit ENEEDAUTH.

Test plan

  • Merge to main
  • Delete + recreate v0.1.1 release (or create v0.1.2) to trigger publish workflow
  • Verify npm publish succeeds with provenance badge

- Upgrade npm for OIDC token support
- Strip _authToken placeholder from .npmrc (blocks OIDC fallback)
- Switch from pnpm publish + NPM_TOKEN to npm publish --provenance
- Add --ignore-scripts to skip redundant prepublishOnly build
@bntvllnt bntvllnt self-assigned this Mar 25, 2026
@bntvllnt bntvllnt merged commit 03d4482 into main Mar 25, 2026
2 checks passed
@bntvllnt bntvllnt deleted the fix/publish-oidc branch March 25, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant