refactor(ci): merge release workflows into single file#1137
Merged
Conversation
npm trusted publisher only allows one CI file to be configured. Merged release-production.yml, release-beta.yml, and release-dry-run.yml into a single release.yml with a workflow_dispatch type input (dry-run, beta, production). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add id-token: write permission for OIDC token exchange - Enable provenance in @semantic-release/npm config - Remove manual npm config set from devbox release script Packages must be configured on npmjs.com to trust the segmentio/analytics-react-native repo and release.yml workflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…shing Upgrade from v11 to v13 which natively supports OIDC trusted publishing. This eliminates the need for NPM_TOKEN entirely - npm auth is handled via short-lived OIDC tokens from the GitHub runner. Removed all NPM_TOKEN and YARN_NPM_AUTH_TOKEN references from the release workflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Merges the three separate release workflows into a single
release.ymlto support npm trusted publisher (which only allows one CI file).Before:
release-production.yml,release-beta.yml,release-dry-run.ymlAfter:
release.ymlwith a dropdown input:@betanpm dist-tag@latestnpm dist-tagBehavior is identical to the separate workflows. The release type controls:
release-dry-runvsrelease)Publishenvironment (with approval gate) is requiredgithub.tokenfor dry-run, PAT for beta/production)Test plan
🤖 Generated with Claude Code