mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-08-16 14:40:23 +03:00
script: Update check to exclude '-dev' versions
These should be rejected as not Rolling versions.
This commit is contained in:
parent
2dbd99582e
commit
5b58255a5b
@ -9,8 +9,9 @@ const packageJson = require("../../package.json");
|
||||
// Since cirrus always triggers this script, we must check if the version is a rolling
|
||||
// release version
|
||||
const verSegments = packageJson.version.split(".");
|
||||
const lastVerSegment = verSegments[verSegments.length - 1];
|
||||
|
||||
if (verSegments[verSegments.length - 1].length < 4) {
|
||||
if (lastVerSegment.length < 4 || lastVerSegment.includes('-dev')) {
|
||||
console.log(`According to our version: ${packageJson.version} this is not a rolling release...`);
|
||||
console.log("Exiting without changes...");
|
||||
process.exit(0);
|
||||
|
Loading…
Reference in New Issue
Block a user