Browse Source

build: do not require vsts token for releases (#28648)

Co-authored-by: Samuel Attard <[email protected]>
trop[bot] 4 years ago
parent
commit
9578943848
2 changed files with 1 additions and 1 deletions
  1. 0 1
      .env.example
  2. 1 0
      script/release/ci-release-build.js

+ 0 - 1
.env.example

@@ -4,4 +4,3 @@
 APPVEYOR_CLOUD_TOKEN=
 CIRCLE_TOKEN=
 ELECTRON_GITHUB_TOKEN=
-VSTS_TOKEN=

+ 1 - 0
script/release/ci-release-build.js

@@ -270,6 +270,7 @@ async function buildVSTS (targetBranch, options) {
 
   let vstsURL = VSTS_URL;
   let vstsToken = process.env.VSTS_TOKEN;
+  assert(vstsToken, `${options.ci} requires the $VSTS_TOKEN environment variable to be provided`);
   if (options.ci === 'DevOps') {
     vstsURL = DEVOPS_URL;
     vstsToken = process.env.DEVOPS_TOKEN;