feat(ci): support branch-based prerelease without managing beta branch#1202
Merged
feat(ci): support branch-based prerelease without managing beta branch#1202
Conversation
Remove beta branch force-push workflow and enable any feature branch to publish prereleases with branch name as prerelease identifier. **Changes:** - Remove beta branch force-push step from release workflow - Use current branch name for GITHUB_REF instead of hardcoded 'beta' - Configure semantic-release to treat any non-master branch as prerelease - Update documentation with new fix candidate workflow **Benefits:** - No branch management or syncing required - Clear traceability: branch name appears in version (e.g., 2.23.0-fix-retry-bug.1) - Multiple fix candidates can exist simultaneously - Each feature branch gets its own npm dist-tag **Usage:** 1. Push feature branch (e.g., fix/customer-issue-123) 2. Run Release workflow from that branch with type 'beta' 3. Customer installs: npm install @segment/analytics-react-native@fix-customer-issue-123 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
fdd6079 to
c9fd984
Compare
MichaelGHSeg
approved these changes
Apr 8, 2026
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
Replace the beta branch force-push workflow with branch-based prereleases. Any feature branch can now publish prerelease versions without managing or syncing a secondary branch.
Key changes:
GITHUB_REFinstead of hardcodedbetaBenefits
2.23.0-fix-retry-bug.1)How it works
Publishing a fix candidate:
fix/customer-issue-123)betaas release type2.23.0-fix-customer-issue-123.1Customer installation:
Test plan
🤖 Generated with Claude Code