Skip to content

ci(release): replace auto-release with conventional commit-based workflow#2

Merged
llbbl merged 1 commit intomainfrom
ci/update-auto-release
Mar 11, 2026
Merged

ci(release): replace auto-release with conventional commit-based workflow#2
llbbl merged 1 commit intomainfrom
ci/update-auto-release

Conversation

@llbbl
Copy link
Copy Markdown
Owner

@llbbl llbbl commented Mar 11, 2026

Summary

  • Replaced auto-release.yml with a unified workflow: conventional commit analysis → version bump → multi-platform binary builds → GitHub Release with git-cliff changelog
  • Deleted release.yml (now redundant — build and release are handled inside auto-release.yml)
  • Removed manual bump-patch, bump-minor, bump-major, and release-* recipes from justfile; replaced with a single CI-friendly set-version recipe

Changes

CI/CD

  • .github/workflows/auto-release.yml: Rewrote from a simple patch-bumping PR-merge hook into a three-job pipeline (versionbuildrelease). The version job parses commit messages since the last tag to determine the correct semver bump, runs lint and tests, commits the updated package.json, and pushes an annotated tag. The build job checks out that tag and compiles binaries for linux-x64, darwin-arm64, darwin-x64, and windows-x64 in parallel. The release job downloads all artifacts, generates a changelog via git-cliff, and publishes a GitHub Release.
  • .github/workflows/release.yml: Deleted — fully superseded by the new auto-release.yml.

Refactoring

  • justfile: Removed six manual version-bump and release recipes (bump-patch, bump-minor, bump-major, release-patch, release-minor, release-major). Added set-version <version> — a minimal, Linux-compatible recipe that writes the version into package.json without any git side effects, for use by CI.

Test plan

  • Merge a fix: commit to main and verify a patch bump is created and a release is published
  • Merge a feat: commit to main and verify a minor bump is created
  • Verify binaries for all four targets are attached to the release
  • Verify the release body contains the git-cliff changelog
  • Confirm chore(release): commits do not re-trigger the workflow (skip guard)

…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
@llbbl llbbl merged commit 8e5ae02 into main Mar 11, 2026
1 check passed
@llbbl llbbl deleted the ci/update-auto-release branch March 11, 2026 21:12
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.88%. Comparing base (76ce26b) to head (ef018c4).
⚠️ Report is 3 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant