ci(release): replace auto-release with conventional commit-based workflow#2
Merged
ci(release): replace auto-release with conventional commit-based workflow#2
Conversation
…flow ### CI/CD - .github/workflows/auto-release.yml: Rewrote to trigger on push to main, inspect commit history to determine semver bump (major/minor/patch), run lint + tests, commit the version bump, tag, build multi-platform binaries in parallel, and publish a GitHub Release with git-cliff changelog - .github/workflows/release.yml: Deleted — build and release steps are now part of auto-release.yml ### Refactoring - justfile: Removed bump-patch, bump-minor, bump-major, release-patch, release-minor, release-major recipes; replaced with a single CI-friendly set-version recipe that updates package.json without git side effects
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2 +/- ##
=======================================
Coverage 95.88% 95.88%
=======================================
Files 13 13
Lines 680 680
=======================================
Hits 652 652
Misses 28 28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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
auto-release.ymlwith a unified workflow: conventional commit analysis → version bump → multi-platform binary builds → GitHub Release with git-cliff changelogrelease.yml(now redundant — build and release are handled insideauto-release.yml)bump-patch,bump-minor,bump-major, andrelease-*recipes fromjustfile; replaced with a single CI-friendlyset-versionrecipeChanges
CI/CD
version→build→release). Theversionjob parses commit messages since the last tag to determine the correct semver bump, runs lint and tests, commits the updatedpackage.json, and pushes an annotated tag. Thebuildjob checks out that tag and compiles binaries for linux-x64, darwin-arm64, darwin-x64, and windows-x64 in parallel. Thereleasejob downloads all artifacts, generates a changelog viagit-cliff, and publishes a GitHub Release.auto-release.yml.Refactoring
bump-patch,bump-minor,bump-major,release-patch,release-minor,release-major). Addedset-version <version>— a minimal, Linux-compatible recipe that writes the version intopackage.jsonwithout any git side effects, for use by CI.Test plan
fix:commit tomainand verify a patch bump is created and a release is publishedfeat:commit tomainand verify a minor bump is createdchore(release):commits do not re-trigger the workflow (skip guard)