fix(release): derive versions from conventional commits - #540
Merged
Conversation
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 unconditional patch-bump workflow with git-cliff semantic versioning and make release builds embed the version they publish.
The current pipeline builds native libraries before bumping
VERSION. This was observable inv3.0.1: the macOS ARM64 asset namedlibvscode_diff_macos_arm64_3.0.1.dylibreports3.0.0fromget_version().Changes
cliff.tomlas the release policyfix,perf,revert, andrefactorbump patchfeatbumps minorgit-cliff --no-exec --unreleased --bumped-versionVERSIONmatches the latest reachable release tagSHA256SUMSnext/manual-release state machineBenefits
Verification
make test-c— 10/10 C tests passedCODEDIFF_TEST_JOBS=4 ./tests/run_tests.sh— 107 spec files passed3.0.1, actual2.67.0; rebuilding passed3.0.2produced a library reporting3.0.2, then restoring3.0.1reproduced3.0.1--unreleasedand disabling breaking protection were both mutation-tested3.0.1,released=falsefix(release)→3.0.2,released=trueVERSION/tag drift → failureMakefileandMakefile.wingit diff --checkpassedAfter merge, this fix is expected to produce
v3.0.2with assets that actually embed3.0.2.