fix: support releasing from non-main branches with version override#290
Merged
fix: support releasing from non-main branches with version override#290
Conversation
c1b22d0 to
ec78216
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the GitHub Actions release workflow so releases can be cut from non-main branches and (optionally) override the computed next version when the auto-increment logic chooses the wrong base tag.
Changes:
- Add a
version-overrideworkflow_dispatch input and a “Resolve version” step that selects either the override or the computed next tag. - Replace hardcoded
mainbranch assumptions by pushing without:mainand creating releases targeting${{ github.ref_name }}. - Wire version usage (sed updates, commit message, release tag) through the resolved version output.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ec78216 to
e8f25c1
Compare
jsalaber
approved these changes
Apr 17, 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.
Fix release workflow to support non-main release branches
The prepare-release action computes the next version from the most recently created git tag rather than the highest
semver tag. After the v2.3.3 backport (created after v2.6.3), this caused the workflow to compute 2.4.0 as the next
version instead of 2.7.0.
Changes:
when needed