Skip to content

Commit 340df3c

Browse files
committed
Update version script to support new semver
1 parent 906f33c commit 340df3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.scripts/create-version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ try {
1919
const longHash = exec('git log --pretty=format:"%H" -n 1');
2020
const tag = exec(`git tag --contains "${longHash}"`);
2121

22-
if (/^v[0-9]+$/.test(tag)) {
22+
if (/^v[0-9]+.[0-9]+.[0-9]+$/.test(tag)) {
2323
writeVersionFile(tag);
2424
} else {
2525
const shortHash = exec('git log --pretty=format:"%h" -n 1');

0 commit comments

Comments
 (0)