|
@@ -8,6 +8,9 @@ const ONLY_ON_BRANCH = 'origin/master';
|
8
|
8
|
const VERSION_TAG = process.env.RELEASE_BUILD ? 'latest' : 'snapshot';
|
9
|
9
|
const VERSION_INC = 'patch';
|
10
|
10
|
|
|
11
|
+// Workaround JS
|
|
12
|
+const release = !!!process.env.RELEASE_BUILD;
|
|
13
|
+
|
11
|
14
|
function run() {
|
12
|
15
|
if (!validateEnv()) {
|
13
|
16
|
return;
|
|
@@ -61,7 +64,7 @@ function versionTagAndPublish() {
|
61
|
64
|
console.log(`!!Release ?`, !!process.env.RELEASE_BUILD);
|
62
|
65
|
console.log(`!!!Release ?`, !!!process.env.RELEASE_BUILD);
|
63
|
66
|
|
64
|
|
- const version = process.env.RELEASE_BUILD ? process.env.VERSION : `${currentPublished}-snapshot.${process.env.BUILD_ID}`;
|
|
67
|
+ const version = release ? process.env.VERSION : `${currentPublished}-snapshot.${process.env.BUILD_ID}`;
|
65
|
68
|
console.log(`Publishing version: ${version}`);
|
66
|
69
|
|
67
|
70
|
tryPublishAndTag(version);
|