ci: Update npm release job to use trusted publishing#129
Merged
ViolanteCodes merged 9 commits intomasterfrom Nov 13, 2025
Merged
ci: Update npm release job to use trusted publishing#129ViolanteCodes merged 9 commits intomasterfrom
ViolanteCodes merged 9 commits intomasterfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR migrates the npm package publishing workflow from legacy token-based authentication to npm's trusted publishing mechanism, which uses short-lived tokens. This change is necessary due to npm's deprecation of legacy tokens as announced in September 2025.
Key changes:
- Added OIDC permissions for trusted publishing in the GitHub Actions workflow
- Updated the repository URL format to comply with npm provenance requirements
- Removed the deprecated
npm-publish.ymlworkflow file
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Updated repository URL from git:// to git+https:// format to support provenance statements |
| .github/workflows/publish.yml | Migrated to trusted publishing by adding OIDC permissions, updating action versions, requiring npm 11.5.1+, and removing legacy token authentication |
| .github/workflows/npm-publish.yml | Removed duplicate workflow that was already disabled and incompatible with new authentication |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ci: Update npm release job to use trusted publishing
Due to changes to npm tokens
https://github.blog/changelog/2025-09-29-strengthening-npm-security-important-changes-to-authentication-and-token-management
(legacy tokens are going to be removed), ci job related to publishing npm
package is migrated to use trusted publishing which uses short-lived tokens.
repository.urlis changed to match the provenance statements duringpublishing - invalid url will cause failed release.
npm-publishworkflow is removed - it is already disabled, it will not workwith legacy tokens and it seems to duplicate what
publishworkflow alreadydoes.
Touch: https://tiugotech.atlassian.net/browse/TD-1099