Skip to content

chore(workflow): switch npm release to OIDC#146

Merged
Himenon merged 3 commits intomainfrom
fix/release-npm-registry
May 6, 2026
Merged

chore(workflow): switch npm release to OIDC#146
Himenon merged 3 commits intomainfrom
fix/release-npm-registry

Conversation

@Himenon
Copy link
Copy Markdown
Owner

@Himenon Himenon commented May 6, 2026

Summary

This PR migrates the npm release authentication from a static NPM_TOKEN (secret) to OpenID Connect (OIDC) via GitHub's Trusted Publishers.

Changes

  • Added id-token: write and contents: read permissions to the release-npm-registry job.
  • Removed the dependency on secrets.NPM_TOKEN.
  • Maintained NPM_CONFIG_PROVENANCE=true for secure package publishing.

Impact

  • Security: No longer requires managing long-lived npm tokens in GitHub Secrets.
  • Workflow: Authentication is now handled automatically by GitHub's OIDC provider.

@Himenon Himenon merged commit 158965f into main May 6, 2026
2 checks passed
@Himenon Himenon deleted the fix/release-npm-registry branch May 6, 2026 04:21
@Himenon Himenon restored the fix/release-npm-registry branch May 6, 2026 04:36
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