Skip to content

Commit a741676

Browse files
committed
change: check against tag name
1 parent 3e44169 commit a741676

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/fragmenter_version.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const buildInfo = require('./git_build_info').getGitBuildInfo();
22
const packageInfo = require('../package.json');
33

44
let version;
5-
if (packageInfo.edition === 'stable') {
5+
if (buildInfo?.tag && /^v\d/.test(buildInfo.tag) && !/-rc/.test(buildInfo.tag)) {
6+
version = buildInfo.tag;
67
version = `v${packageInfo.version}`;
78
} else {
89
const hash = buildInfo?.shortHash;

0 commit comments

Comments
 (0)