Skip to content

fix(release): enable npm trusted publishing in release workflow#6

Merged
lemyskaman merged 2 commits into
mainfrom
copilot/fix-release-job-failure
Jun 17, 2026
Merged

fix(release): enable npm trusted publishing in release workflow#6
lemyskaman merged 2 commits into
mainfrom
copilot/fix-release-job-failure

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The release Actions job failed during semantic-release publish with npm E403 because the workflow was not configured for OIDC trusted publishing and fell back to token-based auth. This change aligns the workflow with npm trusted publisher requirements.

  • Root cause addressed

    • Add workflow permission required for GitHub OIDC token issuance:
      • id-token: write
  • Publish auth path corrected

    • Remove token-based npm env vars from the release step:
      • NPM_TOKEN
      • NODE_AUTH_TOKEN
    • This ensures @semantic-release/npm uses OIDC trusted publishing instead of invalid/insufficient token credentials.
  • Workflow diff (core change)

permissions:
  contents: write
  issues: write
  id-token: write
  pull-requests: write

# release step env now only keeps:
env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Copilot AI changed the title [WIP] Fix failing GitHub Actions job for release fix(release): enable npm trusted publishing in release workflow Jun 17, 2026
Copilot AI requested a review from lemyskaman June 17, 2026 18:01
@lemyskaman lemyskaman marked this pull request as ready for review June 17, 2026 18:05
@lemyskaman lemyskaman merged commit b397b03 into main Jun 17, 2026
5 checks passed
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.

2 participants