Commit c0fb186c authored by yogevbd's avatar yogevbd

Update release script

parent d5a27356
......@@ -8,7 +8,7 @@ const path = require('path');
// Workaround JS
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_INC = 'patch';
......@@ -31,10 +31,10 @@ function validateEnv() {
return false;
}
if (process.env.GIT_BRANCH !== BRANCH) {
console.log(`not publishing on branch ${process.env.GIT_BRANCH}`);
return false;
}
// if (process.env.GIT_BRANCH !== BRANCH) {
// console.log(`not publishing on branch ${process.env.GIT_BRANCH}`);
// return false;
// }
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