2022-10-03 18:06:08 +08:00
|
|
|
parameters:
|
|
|
|
- name: VSCODE_RELEASE
|
|
|
|
type: boolean
|
|
|
|
|
2021-05-07 05:46:17 +08:00
|
|
|
steps:
|
|
|
|
- task: NodeTool@0
|
|
|
|
inputs:
|
2023-10-05 10:08:50 +08:00
|
|
|
versionSource: fromFile
|
|
|
|
versionFilePath: .nvmrc
|
2021-05-07 05:46:17 +08:00
|
|
|
|
2021-11-19 04:37:23 +08:00
|
|
|
- task: AzureCLI@2
|
2021-05-07 05:46:17 +08:00
|
|
|
inputs:
|
|
|
|
azureSubscription: "vscode-builds-subscription"
|
2021-11-19 04:37:23 +08:00
|
|
|
scriptType: pscore
|
|
|
|
scriptLocation: inlineScript
|
|
|
|
addSpnToEnvironment: true
|
|
|
|
inlineScript: |
|
|
|
|
Write-Host "##vso[task.setvariable variable=AZURE_TENANT_ID]$env:tenantId"
|
|
|
|
Write-Host "##vso[task.setvariable variable=AZURE_CLIENT_ID]$env:servicePrincipalId"
|
|
|
|
Write-Host "##vso[task.setvariable variable=AZURE_CLIENT_SECRET;issecret=true]$env:servicePrincipalKey"
|
2021-05-07 05:46:17 +08:00
|
|
|
|
|
|
|
- script: |
|
|
|
|
set -e
|
|
|
|
(cd build ; yarn)
|
2021-11-19 04:37:23 +08:00
|
|
|
AZURE_TENANT_ID="$(AZURE_TENANT_ID)" \
|
|
|
|
AZURE_CLIENT_ID="$(AZURE_CLIENT_ID)" \
|
|
|
|
AZURE_CLIENT_SECRET="$(AZURE_CLIENT_SECRET)" \
|
2022-10-03 18:06:08 +08:00
|
|
|
node build/azure-pipelines/common/releaseBuild.js ${{ parameters.VSCODE_RELEASE }}
|