Skip to content

Commit

Permalink
fix(build): error when github token is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed May 27, 2019
1 parent b0866f6 commit ee63b08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/nx-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <version> [options]
Expand Down

0 comments on commit ee63b08

Please sign in to comment.