Commit Graph
1 Commits
Author SHA1 Message Date
Pierre Rouanet 3e1708ea95 ci: releases carry a changelog, and one run means one check (#60)
Two things 0.4.0 exposed.

**The release everybody reads said nothing about itself.** A promoted release's
notes were "Promoted from `daemon-staging-v0.4.0`", and the changelog lived on
the staging release — which promotion then deletes. So the stable release, the
one people open, had no account of what was in it.

`scripts/ci-release-notes.sh` composes the notes both workflows use: why these
bytes exist, then what changed. The changelog comes from GitHub's own generator
rather than a file in the repo — a hand-maintained CHANGELOG.md is a second
place to forget, and the generator already knows the merged pull requests, which
is what this history is made of.

Its left edge is the previous *stable* tag, chosen explicitly. Letting the
generator pick would mean "since the most recent release of any kind", and
`dev.yml` publishes a prerelease on every push to every branch — so a changelog
would usually cover the last twenty minutes.

Notes are only written when there are none. Anything typed into the UI is
somebody's deliberate description of their own release and outranks a generated
one.

**A cancelled run reports as a failed check.** Publishing in the UI fired both
the tag `push` and `release: published`, the concurrency group cancelled one, and
the tag then showed a red ✗ for a release that was entirely fine — which is worse
than the duplicate it was fixing, because it teaches people to ignore the badge.

Publishing in the UI creates the tag, so `push` covers that path on its own —
verified both ways while cutting 0.4.0. The `release` trigger is gone, and
`cancel-in-progress` with it. What one trigger gives up is publishing a release
against a tag that already exists, which built on its own push anyway.

`ci-release-notes.sh` joins the shellcheck list, unlike `ci-cross-deps.sh`: it
runs during a release, which is the worst moment to find a typo.

Assisted-by: Claude:claude-opus-5[1m]
2026-08-10 19:58:52 +02:00