From c0fb186c3c9f4deda096a7048328bc132d2a8de7 Mon Sep 17 00:00:00 2001 From: yogevbd Date: Sun, 15 Sep 2019 12:12:02 +0300 Subject: [PATCH] Update release script --- scripts/release.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/release.js b/scripts/release.js index 5ba671d..af9cbde 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -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; } -- 2.26.2