Skip to content

Auto-increment versions and generate release notes - #18

Merged
springwq merged 1 commit into
mainfrom
codex/auto-version-release
Aug 22, 2026
Merged

Auto-increment versions and generate release notes#18
springwq merged 1 commit into
mainfrom
codex/auto-version-release

Conversation

@springwq

Copy link
Copy Markdown
Collaborator

Replaces the manual `version` input with automatic versioning, and makes release pages look like cli/cli's.

Changes

  • No more version input: validate computes the next version from the latest tag + `bump` input (`patch`/`minor`/`major`, default `patch`). All downstream jobs use the computed version.
  • New `bump` job (publish only): commits the `version.rb` bump to `main` as the release bot; build/assemble/publish/formula-pr all check out that commit, so `fm version` reports the released version. Idempotent — a failed run leaves no tag, so re-running computes the same version.
  • cli/cli-style release notes: `script/publish-release` now calls the generate-notes API (What's Changed from merged PRs since the previous tag) and appends the checksums; the release is tagged at the exact bump commit via `--target`.
  • Dry-run behavior unchanged (no bump, no writes), all gates unchanged (confirm=release, release environment on main, not-released check).

Verified locally: bump step mechanics in a temp repo (version rewrite, commit, push, sha output), version computation against real tags (v0.1.0 → 0.1.1 / 0.2.0 / 1.0.0), workflow YAML + embedded shell syntax, full test suite and RuboCop.

The release workflow no longer takes a version input: the next version
is computed from the latest tag plus a bump input (patch/minor/major,
default patch). A bump job commits version.rb to main before the build
so the artifacts report the released version, and the release is tagged
at that exact commit. Release notes are auto-generated from merged PRs
(cli/cli style) with the checksums appended.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@springwq
springwq merged commit 0d9eade into main Aug 22, 2026
16 checks passed
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