Skip to content

ci: Changing the action to use trusted publishing for npm packages#47

Merged
polymesh-bot merged 1 commit intomainfrom
ci/npm-oidc
Feb 19, 2026
Merged

ci: Changing the action to use trusted publishing for npm packages#47
polymesh-bot merged 1 commit intomainfrom
ci/npm-oidc

Conversation

@debelio
Copy link
Copy Markdown
Contributor

@debelio debelio commented Feb 18, 2026

Description

Migrate npm publishing from classic token authentication to OIDC Trusted Publishing.

npm classic tokens were permanently revoked in December 2025. Granular access tokens
are now limited to 90 days for write access, requiring periodic manual rotation.

OIDC Trusted Publishing eliminates token management entirely — GitHub provides
short-lived tokens automatically via its OIDC provider.

Changes:

  • Remove NPM_TOKEN secret from release workflow
  • Add id-token: write permission to enable OIDC token generation
  • Add explicit contents, issues, and pull-requests permissions (previously implicit)

Breaking Changes

JIRA Link

Checklist

  • Updated the Readme.md (if required) ?

@debelio
Copy link
Copy Markdown
Contributor Author

debelio commented Feb 18, 2026

I will draft this until the necessary changes are made on npmjs.com.

@debelio debelio marked this pull request as draft February 18, 2026 11:47
@debelio debelio marked this pull request as ready for review February 19, 2026 09:29
@debelio
Copy link
Copy Markdown
Contributor Author

debelio commented Feb 19, 2026

/fast-forward

@polymesh-bot polymesh-bot merged commit ee751b5 into main Feb 19, 2026
6 of 7 checks passed
@polymesh-bot polymesh-bot deleted the ci/npm-oidc branch February 19, 2026 14:45
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.

3 participants