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

Co-authored-by: Samuel Attard <sattard@slack-corp.com>
This commit is contained in:
trop[bot]
2021-04-14 11:44:43 +02:00
committed by GitHub
parent 91de226a62
commit 9578943848
2 changed files with 1 additions and 1 deletions

View File

@@ -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;