Files
floci-cli/.github/workflows
Hector Ventura 7cef52bc50 ci(release): add one-button release cut from main (#20)
Releases were tag-driven: a maintainer hand-bumped pom.xml, hand-moved the
CHANGELOG [Unreleased] entries under a new heading, committed, then pushed a
SemVer tag. Three manual steps, each able to disagree with the others.

Add a manually-dispatched Release Cut workflow that runs semantic-release
against main: it analyzes the Conventional Commits since the last tag, bumps
pom.xml via `mvn versions:set`, regenerates CHANGELOG.md, commits both, tags
(tagFormat ${version}), and creates the GitHub Release. The tag push then
fires release.yml exactly as a manual tag push did, so the binary build and
homebrew-bump chain is untouched. A dry-run input previews the next version
and notes without releasing.

The cut needs a fine-grained PAT (GH_TOKEN, contents:write) rather than the
default GITHUB_TOKEN, whose tag pushes do not trigger other workflows — with
it, release.yml would never run. The semantic-release toolchain is pinned by
its own package-lock.json and installed with `npm ci --ignore-scripts`, so
the job holding that PAT never resolves mutable versions.

CHANGELOG.md becomes generated output. The hand-maintained [Unreleased]
section and its compare link are removed, the header explains the new
contract, and historic sections stay as they were. Changelog Guard fails any
PR that edits the file by hand unless a maintainer applies the
`changelog-edit` label.

Since commit messages are now the changelog, add a Conventional Commits
workflow that lints every non-merge commit in a PR against the types
semantic-release recognizes.

Also drop the hand-written installation body from release.yml — the release
now carries just the attachments, and semantic-release writes the notes.
2026-08-26 22:41:01 -05:00
..
2026-05-15 18:08:45 -05:00