Commit c0fb186c authored by yogevbd's avatar yogevbd

Update release script

parent d5a27356
...@@ -8,7 +8,7 @@ const path = require('path'); ...@@ -8,7 +8,7 @@ const path = require('path');
// Workaround JS // Workaround JS
const isRelease = process.env.RELEASE_BUILD === 'true'; const isRelease = process.env.RELEASE_BUILD === 'true';
const BRANCH = process.env.BRANCH; const BRANCH = process.env.GIT_BRANCH;
const VERSION_TAG = isRelease ? 'latest' : 'snapshot'; const VERSION_TAG = isRelease ? 'latest' : 'snapshot';
const VERSION_INC = 'patch'; const VERSION_INC = 'patch';
...@@ -31,10 +31,10 @@ function validateEnv() { ...@@ -31,10 +31,10 @@ function validateEnv() {
return false; return false;
} }
if (process.env.GIT_BRANCH !== BRANCH) { // if (process.env.GIT_BRANCH !== BRANCH) {
console.log(`not publishing on branch ${process.env.GIT_BRANCH}`); // console.log(`not publishing on branch ${process.env.GIT_BRANCH}`);
return false; // return false;
} // }
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment