Skip to content

ci(release): publish to npm via Trusted Publishing OIDC - #53

Merged
joaner merged 1 commit into
ioai-tech:mainfrom
joaner:fix/npm-trusted-publishing
Aug 26, 2026
Merged

ci(release): publish to npm via Trusted Publishing OIDC#53
joaner merged 1 commit into
ioai-tech:mainfrom
joaner:fix/npm-trusted-publishing

Conversation

@joaner

@joaner joaner commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Switch the Release workflow from legacy NPM_TOKEN to npm Trusted Publishing (GitHub Actions OIDC).
  • npm is restricting classic tokens that bypass 2FA; @ioai/rosview already has a trusted publisher configured for ioai-tech/rosview / release.yml.
  • Update release docs to match the new auth model.

Changes

  • Remove NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} from the publish step
  • Add contents: read alongside existing id-token: write
  • Document Trusted Publisher settings in docs/RELEASE.md

Test plan

  • CI green on this PR
  • Re-push v1.8.1 tag after merge and confirm Publish to npm succeeds

Remove the legacy NPM_TOKEN publish path now that npm restricts
classic tokens that bypass 2FA. The Release workflow already grants
id-token: write; npm CLI authenticates through the trusted publisher
configured for ioai-tech/rosview and release.yml.
@joaner
joaner merged commit 29b9a2b into ioai-tech:main Aug 26, 2026
2 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.

1 participant