Repository navigation
fix(release): tolerate NO_COMMITS_TO_BUMP on chore/docs-only pushes - #6
Merged
Merged
Conversation
cz bump exits 21 (NO_COMMITS_TO_BUMP) when the only commits since the last tag are non-bumpable (pure chore:/docs:). It is an error, not a no-op, so a chore-only merge to main failed the bump job. Use -nr 21 to turn that exit code into a clean 0; the existing tag-check step then detects 'no release' and skips publish.
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.
Validates task 4.4. The previous merge (
chore: mark ... verified) failed therelease.ymlbump job with exit code 21 —cz bumptreats "no eligible commits since last tag" as an error, not a no-op.Fix:
cz -nr 21 bump --yes --changelog— the--no-raise 21turnsNO_COMMITS_TO_BUMPinto a clean exit 0, so the existing tag-check step detects "no tag created" and skipspublish. Non-bumpable (chore:/docs:-only) merges now correctly produce no release.OpenSpec change:
add-release-pipeline