Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Oct 19, 2023
1 parent c1f20df commit eedb90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish-on-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const assertGitTag = () => {
const tag = GIT_TAG.replace(/^v/, '');
const semverRegex = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/gm;
if (!semverRegex.test(tag)) {
fatal(`Aborting deployment to GitHub Releases because "${GIT_TAG}" does not conform to SemVer`);
fatal(`Aborting deployment to GitHub Releases because "${tag}" does not conform to SemVer`);
}

return GIT_TAG;
Expand Down

0 comments on commit eedb90a

Please sign in to comment.