#2260·miller

Fix GitHub notifications to not show stable releases as "Pre-release"

Author: kartiksubbaraoCreated Sep 28, 2026Updated Sep 28, 2026

One confusing thing for me is that github release emails for miller always show up as "Pre-release". For example, here's what I got for 6.22:

Subject: [johnkerl/miller] Pre-release v6.22.0 - Miller 6.22.0

ChatGPT tracked this down to tools/release.sh, which creates the GitHub release with --prerelease; GitHub therefore initially treats it as a pre-release and sends the release notification with "Pre-release" in the subject. I asked it to look through the release machinery and work out a fix, here's what it recommended:


1. In tools/release.sh, create the release with --draft instead of --prerelease.

2. In .goreleaser.yml, tell GoReleaser to use that existing draft and leave it as a draft:

yaml
release:
  github:
    owner: johnkerl
    name: miller
  draft: true
  use_existing_draft: true

3. In the docs preflight in tools/release.sh, change the check from isPrerelease to isDraft, so it still refuses to continue until the release has actually been published.

4. Update the corresponding messages/comments in tools/release.sh and docs/src/how-to-release.md.in from "pre-release" to "draft".

The existing .github/workflows/release.yml shouldn't need any change: GoReleaser is triggered by the v* tag push, not by the GitHub release being a pre-release.

The final workflow would therefore still be essentially the same:

create draft → GoReleaser attaches binaries → verify binary → publish release