Repository navigation
ci: automate releases with commitizen via dev - #948
Merged
Merged
Conversation
Work now collects on a dev branch. release-pr.yml keeps one dev -> main PR open, titled with the version it would release and carrying its changelog. Merging it (merge commit, not squash) runs auto-release.yml: commitizen picks the version from the conventional commits since the last tag, bump-version.sh writes the five version files, the CHANGELOG section is prepended, and the bump commit and tag go to main together. release.yml is then called directly (a GITHUB_TOKEN tag push starts no workflow), builds all four platforms and publishes once latest.json is attached. main is merged back into dev. pr-title.yml checks PR titles into dev are conventional commits, since the squash title decides the release, and allows only dev to target main. Dependabot, the dprint bump and CI follow dev. The release skill and docs describe the new flow. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
6 tasks
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.
Releases become automatic, using the same commitizen approach as the maintainer's solaredge repository, with one change: work collects on a
devbranch, and merging a standingdev→mainPR cuts the release.Flow
dev, Dependabot and the weekly dprint bump included. PRs are squash-merged.pr-title.ymlchecks the title is a conventional commit, because that title is what decides the release. It also fails any PR intomainthat doesn't come fromdev.release-pr.ymlruns on every push todev. It opens or updates onedev→mainPR, titled with the version merging it would release (Release v1.6.0), with that release's changelog in the body.auto-release.yml:fix:/perf:/refactor:give a patch,feat:a minor,!orBREAKING CHANGEa major. Other types release nothing.scripts/bump-version.shwrites the five version files, and commitizen prependsCHANGELOG.md.release: X.Y.Zand the annotatedvX.Y.Ztag are pushed tomaintogether (--atomic).release.ymldirectly, because a tag pushed withGITHUB_TOKENstarts no workflow.release.ymlbuilds the four platforms and attacheslatest.json. The release stays a draft until then and is published after.mainis merged back intodev.Details
.cz.toml:version_provider = "scm": the tag is the source of truth and the files follow it.tag_format = "v$version"andchangelog_start_rev = "v1.4.0".--require-hashesfrom.github/release/requirements.txt, generated byuv pip compile.release.yml:workflow_callwith ataginput and secrets passed explicitly.just bumpnow callsscripts/bump-version.shand is only for fixing version drift.ci.ymlalso runs on PRs intodevand on pushes todev. The release PR is opened by Actions and gets nopull_requestruns, so its checks come from the push run on the same commit.target-branch: dev.dprint-update.ymlchecks outdevand opens its PR against it.AGENTS.md,CLAUDE.md,CONTRIBUTING.md,docs/CI.md,docs/RELEASING.mdand thereleaseskill describe the new flow.Bootstrap
v1.5.0was never tagged. Commitizen computes 1.5.0 from the commits sincev1.4.0, so the first release PR merge releases v1.5.0, including everything merged since the 1.5.0 bump. No manual tag push is needed.Repository settings (manual, can't be done in a PR)
dev. Dependabot reads its config from the default branch, and security updates ignoretarget-branch.mainhas a ruleset, let GitHub Actions bypass it so the bump commit can be pushed.Verified locally
v1.4.0.Cargo.lockentry viacargo update --workspace, which also works with an empty cargo cache.fix:gives 1.5.1.--no-raise 3,21.--dry-run --incrementalprints only the new section.check-action-pins.sh,dprint check,check-documented-commands.sh,check-test-mocks.shand allscripts/test-*.shpass.The workflows themselves only prove out on the first real release PR.
Generated by Claude Code