Skip to content

ci: fix npm trusted publishing authentication#5130

Merged
traefiker merged 2 commits intotraefik:masterfrom
mmatur:fix/release
Apr 1, 2026
Merged

ci: fix npm trusted publishing authentication#5130
traefiker merged 2 commits intotraefik:masterfrom
mmatur:fix/release

Conversation

@mmatur
Copy link
Copy Markdown
Member

@mmatur mmatur commented Apr 1, 2026

Description

  • Fix registry URL trailing slash in publishConfig that prevented OIDC token exchange with npm (https://registry.npmjs.orghttps://registry.npmjs.org/)
  • Remove registry-url from setup-node to avoid .npmrc interfering with trusted publishing
  • Add issues: write and pull-requests: write permissions for @semantic-release/github
  • Use secrets.GITHUB_TOKEN instead of secrets.GH_TOKEN

Context

Follows #5126. The OIDC trusted publishing flow in @semantic-release/npm requires the registry URL to exactly match https://registry.npmjs.org/ (with trailing slash). Without it, the OIDC exchange is silently skipped and the plugin falls back to looking for an NPM_TOKEN. See semantic-release/npm#1066.

@traefiker traefiker merged commit cd634fc into traefik:master Apr 1, 2026
4 checks passed
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 1, 2026

🎉 This PR is included in version 12.0.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mmatur mmatur deleted the fix/release branch April 1, 2026 16:51
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.

3 participants