Repository navigation
ci: Gate release tags on approval - #4099
Merged
Merged
Conversation
This was referenced Aug 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.
Rework the semi-automated release workflow so official version tags are only created after maintainer approval.
Previously, the workflow created the
vX.Y.Ztag and draft GitHub release before review. If maintainers decided not to publish the release, the official tag had to be deleted. This workflow instead prepares a release candidate at a pinned commit and waits for approval through a protected GitHub environment before creating the permanent tag.Changes
prepare-release-candidatecreate-draft-releaseby @usernamementions from the issue preview to avoid notifying non-maintainers.releaseenvironment.releaseenvironment has at least one required reviewer before creating a tag.vX.Y.Ztag at the exact reviewed commit after approval.RELEASING.mdto document the approval flow.Release Flow
create-draft-releasejob waits for approval through the protectedreleaseenvironment.Repository Setup
Before using the new flow, configure a GitHub environment named
releasewith at least one required reviewer:releaseenvironment.The workflow fails before creating a tag if the environment has no required reviewers.