From ee63b08ace1a5a75018e867de44ab7e16277dcb9 Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Mon, 27 May 2019 12:58:12 -0400 Subject: [PATCH] fix(build): error when github token is not set --- scripts/nx-release.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/nx-release.js b/scripts/nx-release.js index 31091495e6ee1..ea19300339c81 100755 --- a/scripts/nx-release.js +++ b/scripts/nx-release.js @@ -15,6 +15,11 @@ const parsedArgs = yargsParser(process.argv, { console.log('parsedArgs', parsedArgs); +if (! process.env.GITHUB_TOKEN_RELEASE_IT_NX) { + console.error('process.env.GITHUB_TOKEN_RELEASE_IT_NX is not set'); + process.exit(1); +} + if (parsedArgs.help) { console.log(` Usage: yarn nx-release [options]