Skip to content

fix(ci): prevent release failure when tag already exists - #213

Merged
krypton-byte merged 1 commit into
masterfrom
dev
Aug 26, 2026
Merged

fix(ci): prevent release failure when tag already exists#213
krypton-byte merged 1 commit into
masterfrom
dev

Conversation

@krypton-byte

Copy link
Copy Markdown
Owner

The release workflow's dry-run step (semantic-release --print) could compute a version whose tag already existed on the remote, causing the subsequent gh release create to fail with HTTP 422. Add an explicit tag-existence check in the dry-run step and capture PSR output in the release step to abort early if PSR decides no release is needed.

The release workflow's dry-run step (semantic-release --print) could
compute a version whose tag already existed on the remote, causing the
subsequent gh release create to fail with HTTP 422. Add an explicit
tag-existence check in the dry-run step and capture PSR output in the
release step to abort early if PSR decides no release is needed.
@krypton-byte
krypton-byte merged commit 8ccfa8e into master Aug 26, 2026
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