Path: blob/main/build/azure-pipelines/darwin/product-build-darwin-cli-sign.yml
3520 views
parameters:1- name: VSCODE_BUILD_MACOS2type: boolean3- name: VSCODE_BUILD_MACOS_ARM644type: boolean56steps:7- template: ../common/checkout.yml@self89- task: NodeTool@010inputs:11versionSource: fromFile12versionFilePath: .nvmrc1314- task: AzureKeyVault@215displayName: "Azure Key Vault: Get Secrets"16inputs:17azureSubscription: vscode18KeyVaultName: vscode-build-secrets19SecretsFilter: "github-distro-mixin-password"2021- script: node build/setup-npm-registry.js $NPM_REGISTRY build22condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))23displayName: Setup NPM Registry2425- script: |26set -e27# Set the private NPM registry to the global npmrc file28# so that authentication works for subfolders like build/, remote/, extensions/ etc29# which does not have their own .npmrc file30npm config set registry "$NPM_REGISTRY"31echo "##vso[task.setvariable variable=NPMRC_PATH]$(npm config get userconfig)"32condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))33displayName: Setup NPM3435- task: npmAuthenticate@036inputs:37workingFile: $(NPMRC_PATH)38condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))39displayName: Setup NPM Authentication4041- script: |42set -e4344for i in {1..5}; do # try 5 times45npm ci && break46if [ $i -eq 5 ]; then47echo "Npm install failed too many times" >&248exit 149fi50echo "Npm install failed $i, trying again..."51done52workingDirectory: build53env:54GITHUB_TOKEN: "$(github-distro-mixin-password)"55displayName: Install build dependencies5657- template: ../cli/cli-darwin-sign.yml@self58parameters:59VSCODE_CLI_ARTIFACTS:60- ${{ if eq(parameters.VSCODE_BUILD_MACOS, true) }}:61- unsigned_vscode_cli_darwin_x64_cli62- ${{ if eq(parameters.VSCODE_BUILD_MACOS_ARM64, true) }}:63- unsigned_vscode_cli_darwin_arm64_cli646566