Skip to content

chore: Verify that the tag used for publishing matches the version number #1067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 3, 2025

Conversation

iwoplaza
Copy link
Collaborator

No description provided.


if (!tagVerified) {
throw new Error(
`Publishing under a mismatched tag "${chosenPublishTag}" for version ${packageJSON.version}.`,
Copy link
Collaborator

@mhawryluk mhawryluk Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I'm not mistaken if there's no tag provided (it's undefined) then this will always throw. and e.g. for typegpu package (currently not alpha) we want there to be no tag. so I think the logic for undefined needs to be changed, we cannot look for "undefined" in version number

Copy link

github-actions bot commented Mar 28, 2025

pkg.pr.new

packages

pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@1067
pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@bc31cbf3617e78cff31999a2d85d8d63c4bb755b

benchmark
view benchmark

commit
view commit

@iwoplaza iwoplaza requested a review from mhawryluk March 28, 2025 21:46
Copy link
Collaborator

@reczkok reczkok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🛠️

@iwoplaza iwoplaza merged commit 891f619 into main Apr 3, 2025
6 checks passed
@iwoplaza iwoplaza deleted the chore/check-for-publish-tag branch April 3, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants