Use NodeJS mirror for more reliable downloads (#196038)

get node from mirror
This commit is contained in:
João Moreno 2023-10-20 09:53:57 +02:00 committed by GitHub
parent 88ab0de44c
commit 417e17038c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 24 additions and 1 deletions

2
.nvmrc
View file

@ -1 +1 @@
18.17 18.17.1

View file

@ -13,6 +13,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
# Install yarn as the ARM64 build agent is using vanilla Ubuntu # Install yarn as the ARM64 build agent is using vanilla Ubuntu

View file

@ -3,6 +3,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- template: ../distro/download-distro.yml - template: ../distro/download-distro.yml

View file

@ -16,6 +16,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../cli/cli-apply-patches.yml - template: ../cli/cli-apply-patches.yml

View file

@ -9,6 +9,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- script: node build/setup-npm-registry.js $NPM_REGISTRY build - script: node build/setup-npm-registry.js $NPM_REGISTRY build
condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none')) condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))

View file

@ -3,6 +3,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- task: UseDotNet@2 - task: UseDotNet@2
inputs: inputs:

View file

@ -3,6 +3,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- template: ../distro/download-distro.yml - template: ../distro/download-distro.yml

View file

@ -20,6 +20,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../distro/download-distro.yml - template: ../distro/download-distro.yml

View file

@ -11,4 +11,5 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- template: ./distro/download-distro.yml - template: ./distro/download-distro.yml

View file

@ -19,6 +19,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../cli/cli-apply-patches.yml - template: ../cli/cli-apply-patches.yml

View file

@ -22,6 +22,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../distro/download-distro.yml - template: ../distro/download-distro.yml

View file

@ -3,6 +3,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- task: DownloadPipelineArtifact@0 - task: DownloadPipelineArtifact@0
displayName: "Download Pipeline Artifact" displayName: "Download Pipeline Artifact"

View file

@ -7,6 +7,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- script: node build/setup-npm-registry.js $NPM_REGISTRY - script: node build/setup-npm-registry.js $NPM_REGISTRY
condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none')) condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))

View file

@ -7,6 +7,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- powershell: node build/setup-npm-registry.js $env:NPM_REGISTRY - powershell: node build/setup-npm-registry.js $env:NPM_REGISTRY
condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none')) condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))

View file

@ -7,6 +7,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ./distro/download-distro.yml - template: ./distro/download-distro.yml

View file

@ -3,6 +3,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- task: AzureKeyVault@1 - task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets" displayName: "Azure Key Vault: Get Secrets"

View file

@ -7,6 +7,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- task: AzureCLI@2 - task: AzureCLI@2
displayName: Fetch secrets displayName: Fetch secrets

View file

@ -14,6 +14,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- bash: | - bash: |
TAG_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`) TAG_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)

View file

@ -55,6 +55,7 @@ stages:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- template: ./distro/download-distro.yml - template: ./distro/download-distro.yml
@ -197,6 +198,7 @@ stages:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- template: ./distro/download-distro.yml - template: ./distro/download-distro.yml

View file

@ -3,6 +3,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- template: ../distro/download-distro.yml - template: ../distro/download-distro.yml

View file

@ -16,6 +16,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}: - ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../cli/cli-apply-patches.yml - template: ../cli/cli-apply-patches.yml

View file

@ -10,6 +10,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- powershell: node build/setup-npm-registry.js $env:NPM_REGISTRY build - powershell: node build/setup-npm-registry.js $env:NPM_REGISTRY build
condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none')) condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))

View file

@ -22,6 +22,7 @@ steps:
inputs: inputs:
versionSource: fromFile versionSource: fromFile
versionFilePath: .nvmrc versionFilePath: .nvmrc
nodejsMirror: https://github.com/joaomoreno/node-mirror/releases/download
- task: UsePythonVersion@0 - task: UsePythonVersion@0
inputs: inputs: