ci: migrate npm publishing to trusted publishing (OIDC)#522
Merged
RichardLindhout merged 1 commit intomasterfrom Apr 4, 2026
Merged
ci: migrate npm publishing to trusted publishing (OIDC)#522RichardLindhout merged 1 commit intomasterfrom
RichardLindhout merged 1 commit intomasterfrom
Conversation
Agent-Logs-Url: https://github.com/web-ridge/react-native-paper-dates/sessions/57afee80-e907-4d16-b3db-c08240639de1 Co-authored-by: RichardLindhout <6492229+RichardLindhout@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
RichardLindhout
April 4, 2026 13:58
View session
Member
|
@copilot still not working? Run yarn release error Command failed with exit code 1. |
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.
Replaces the long-lived
NPM_TOKENsecret with npm's OIDC-based trusted publishing, which was already configured on npmjs.com but not wired up in the workflow.Changes
.npmrctoken injection step (_authToken=${{ secrets.NPM_TOKEN }}) — no longer neededpermissions: id-token: writeto let the job request a GitHub OIDC token, andcontents: writefor git tagging / GitHub release creationNPM_CONFIG_PROVENANCE: trueenv var sorelease-it's internalnpm publishpasses--provenance, triggering the automatic OIDC token exchange with the npm registry