Skip to content

ci(release): skip creating the release when one already exists - #53

Merged
IBJunior merged 1 commit into
mainfrom
ci/release-skip-existing
Oct 23, 2026
Merged

IBJunior merged 1 commit into
mainfrom
ci/release-skip-existing

Conversation

@IBJunior

Copy link
Copy Markdown
Member

Why

Releases are written by hand and published as soon as the tag is pushed. The workflow's publish step then ran gh release create against a tag that already had a release and failed with Release.tag_name already exists. That left the v3 and v4 tag runs red even though their tests and typecheck passed.

Change

  • The publish step checks with gh release view first. If a release for the tag exists, it logs that and leaves the release untouched. Otherwise it creates one with --generate-notes, as before.
  • The test job is unchanged, and publishing still runs only after it passes.
  • AGENTS.md's CI note now describes the skip.

Not changed

A release published by hand still goes out before the tag's test run finishes. For v4 the tests passed about 45 seconds after publishing. To keep the "tag passed CI before release" guarantee, publish after the run is green, or save the hand-written release as a draft and publish it once the run passes.

Not run on a real tag yet. It will first run on v5.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@IBJunior
IBJunior merged commit d356677 into main Oct 23, 2026
1 check passed
@IBJunior
IBJunior deleted the ci/release-skip-existing branch October 23, 2026 11:14
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