Skip to content

Conversation

@drichar
Copy link
Contributor

@drichar drichar commented Jan 14, 2026

Summary

Fixes the ENEEDAUTH error that occurred during npm publish despite successful OIDC token exchange. The previous PR #1 enabled trusted publishing, but the workflow was missing configuration needed to properly pass OIDC credentials to the publish step.

Changes

  • registry-url: Added registry-url: 'https://registry.npmjs.org' to setup-node action to properly configure the npm registry for OIDC authentication
  • npm update: Added step to update npm to latest version to ensure full OIDC trusted publishing support

Root Cause

The OIDC token exchange succeeded during verification but the publish step failed because:

  1. The setup-node action wasn't configured with the registry URL, so the OIDC context wasn't properly established
  2. The bundled npm version may not have had full OIDC support

References

Test Plan

  • Merge PR to main
  • Verify release workflow completes without ENEEDAUTH errors
  • Confirm package publishes to npm successfully

The OIDC token exchange succeeded during verification but failed during
publish with ENEEDAUTH. This fix:

- Adds registry-url to setup-node action to properly configure OIDC context
- Updates npm to latest version to ensure OIDC trusted publishing support

See: npm/cli#8730
@drichar drichar merged commit 56e1af3 into main Jan 14, 2026
1 check passed
github-actions bot added a commit that referenced this pull request Jan 14, 2026
## [2.0.2](v2.0.1...v2.0.2) (2026-01-14)

### Bug Fixes

* **ci:** configure registry-url and update npm for OIDC publishing ([#2](#2)) ([56e1af3](56e1af3))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 2.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@drichar drichar deleted the fix/npm-oidc-registry-url branch January 14, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants