Skip to content

fix: add --provenance flag for npm OIDC publishing#1041

Closed
sarahdayan wants to merge 3 commits into
mainfrom
fix/oidc-provenance
Closed

fix: add --provenance flag for npm OIDC publishing#1041
sarahdayan wants to merge 3 commits into
mainfrom
fix/oidc-provenance

Conversation

@sarahdayan

@sarahdayan sarahdayan commented Feb 5, 2026

Copy link
Copy Markdown
Member

Summary

  • Add --provenance flag to npm publish command when useOidcTokenProvider is enabled
  • Add registry-url to setup-node action in CI workflow (required for OIDC token injection)

Problem

The release workflow failed with ENEEDAUTH error because npm OIDC publishing requires the --provenance flag to authenticate via OIDC tokens instead of traditional NPM_TOKEN.

Solution

  1. Pass useOidcTokenProvider option to getPublishCommand()
  2. Add --provenance flag to the npm publish command when OIDC is enabled
  3. Configure registry-url in the setup-node action

sarahdayan and others added 3 commits February 5, 2026 10:59
…angelog

- Replace conventional-changelog-core@9.x with conventional-changelog@7.1.1
- Use new class-based ConventionalChangelog API
- Remove add-stream dependency (using async iterators instead)
- Remove conventional-changelog-preset-loader (bundled in new package)
- Fixes @conventional-changelog/git-client vulnerability (now uses v2.5.1)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add eslint-disable for import/no-unresolved (ESM exports field)
- Remove unnecessary async from prepareParams

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
When useOidcTokenProvider is enabled, npm publish requires the
--provenance flag to use OIDC token authentication. Also added
registry-url to setup-node action which is required for OIDC.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sarahdayan sarahdayan marked this pull request as draft February 5, 2026 10:26
@sarahdayan

Copy link
Copy Markdown
Member Author

Closing - needs to be rebased on main and the fix approach needs revision

@sarahdayan sarahdayan closed this Feb 5, 2026
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