Skip to content

Commit 5b58255

Browse files
committed
script: Update check to exclude '-dev' versions
These should be rejected as not Rolling versions.
1 parent 2dbd995 commit 5b58255

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/rolling-release-scripts/rolling-release-binary-upload.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ const packageJson = require("../../package.json");
99
// Since cirrus always triggers this script, we must check if the version is a rolling
1010
// release version
1111
const verSegments = packageJson.version.split(".");
12+
const lastVerSegment = verSegments[verSegments.length - 1];
1213

13-
if (verSegments[verSegments.length - 1].length < 4) {
14+
if (lastVerSegment.length < 4 || lastVerSegment.includes('-dev')) {
1415
console.log(`According to our version: ${packageJson.version} this is not a rolling release...`);
1516
console.log("Exiting without changes...");
1617
process.exit(0);

0 commit comments

Comments
 (0)