Skip to content

ci: fail when release tag does not match package.json version#4

Merged
daithihearn merged 1 commit into
mainfrom
chore/verify-release-tag-version
May 14, 2026
Merged

ci: fail when release tag does not match package.json version#4
daithihearn merged 1 commit into
mainfrom
chore/verify-release-tag-version

Conversation

@Vombato
Copy link
Copy Markdown
Contributor

@Vombato Vombato commented May 14, 2026

Summary

  • Replace silent npm version --allow-same-version overwrite with an explicit equality check.
  • Fail the workflow if the GitHub Release tag (without leading v) does not match package.json version.

Test plan

  • Create a release with a tag that does not match package.json — workflow must fail at the verify step.
  • Create a release with a matching tag — workflow proceeds to publish.

@Vombato Vombato requested a review from daithihearn May 14, 2026 11:47
@daithihearn daithihearn merged commit f094a13 into main May 14, 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.

2 participants