fix: separate beta and production release environments#1228
Merged
Conversation
Separate release jobs by type to use different GitHub environments: - Beta releases: Use "Publish-Beta" (no approval required for org members) - Production releases: Use "Publish" (requires reviewer approval) - Dry-run: No environment (no publishing) This allows Segment org team members to self-publish beta releases for testing while maintaining secondary approval for production releases. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
MichaelGHSeg
approved these changes
Apr 14, 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
Split release workflow to use different GitHub environments for beta vs production releases.
Problem
Currently, all releases (beta and production) use the same "Publish" environment which requires manual approval from reviewers. This prevents team members from self-publishing beta releases for customer testing.
Solution
Created two separate environments with different protection rules:
Publish-Beta (New)
*branches (any branch from Segment org members)Publish (Existing)
Changes
releasejob into three separate jobs:release-dryrun- No environment (no publishing)release-beta- UsesPublish-Betaenvironmentrelease-production- UsesPublishenvironmentinputs.typeWorkflow
Beta releases (self-service for team):
Production releases (requires approval):
Security
🤖 Generated with Claude Code