Skip to content

ci: skip publish when the tagged version is already on npm#44

Merged
ryankiley merged 1 commit into
mainfrom
release-publish-guard
Jun 21, 2026
Merged

ci: skip publish when the tagged version is already on npm#44
ryankiley merged 1 commit into
mainfrom
release-publish-guard

Conversation

@ryankiley

Copy link
Copy Markdown
Owner

The release workflow runs npm publish on any v* tag. A retroactive tag (e.g. v0.1.0 for the already-published release) or any accidental re-tag would fail on a duplicate publish.

This adds a guard step that checks npm view tweakit@<version> first and skips the publish when that version is already on the registry — so re-tagging no-ops cleanly instead of going red. New versions publish exactly as before.

So a retroactive tag (e.g. v0.1.0 for the already-published release) or any
re-tag no-ops cleanly instead of failing on a duplicate publish.
@ryankiley ryankiley merged commit 5434e80 into main Jun 21, 2026
2 checks passed
@ryankiley ryankiley deleted the release-publish-guard branch June 21, 2026 03:19
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