Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use nvmrc in CI #194836

Merged
merged 6 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand Down Expand Up @@ -258,7 +258,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/monaco-editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18.15
node-version-file: .nvmrc

- name: Compute node modules cache key
id: nodeModulesCacheKey
Expand Down Expand Up @@ -53,7 +53,9 @@ jobs:
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
run: yarn --frozen-lockfile --network-timeout 180000
run: |
npm i -g node-gyp@9.4.0
yarn --frozen-lockfile --network-timeout 180000

- name: Download Playwright
run: yarn playwright-install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rich-navigation.yml.off
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 18
node-version-file: .nvmrc

- name: Install dependencies
if: steps.caching-stage.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.15
18.18
3 changes: 2 additions & 1 deletion build/azure-pipelines/alpine/cli-build-alpine.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ parameters:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
# Install yarn as the ARM64 build agent is using vanilla Ubuntu
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/alpine/product-build-alpine.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- template: ../distro/download-distro.yml

Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/darwin/cli-build-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ parameters:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../cli/cli-apply-patches.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ parameters:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- script: node build/setup-npm-registry.js $NPM_REGISTRY build
condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/darwin/product-build-darwin-sign.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- task: UseDotNet@2
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- template: ../distro/download-distro.yml

Expand Down
5 changes: 3 additions & 2 deletions build/azure-pipelines/darwin/product-build-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ steps:

- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../distro/download-distro.yml
Expand Down Expand Up @@ -77,7 +78,7 @@ steps:
- script: |
set -e
export npm_config_arch=$(VSCODE_ARCH)
npm i -g node-gyp
npm i -g node-gyp@9.4.0

for i in {1..5}; do # try 5 times
yarn --frozen-lockfile --check-files && break
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/distro-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ pr: none
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc
- template: ./distro/download-distro.yml
3 changes: 2 additions & 1 deletion build/azure-pipelines/linux/cli-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ parameters:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../cli/cli-apply-patches.yml
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/linux/product-build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ steps:

- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../distro/download-distro.yml
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/linux/snap-build-linux.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- task: DownloadPipelineArtifact@0
displayName: "Download Pipeline Artifact"
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/oss/product-build-pr-cache-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ steps:

- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- script: node build/setup-npm-registry.js $NPM_REGISTRY
condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/oss/product-build-pr-cache-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ steps:

- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- powershell: node build/setup-npm-registry.js $env:NPM_REGISTRY
condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))
Expand Down
5 changes: 4 additions & 1 deletion build/azure-pipelines/product-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ parameters:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15.x"
versionSource: fromFile
versionFilePath: .nvmrc

- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ./distro/download-distro.yml
Expand Down Expand Up @@ -58,6 +59,8 @@ steps:

- script: |
set -e
npm i -g node-gyp@9.4.0

for i in {1..5}; do # try 5 times
yarn --frozen-lockfile --check-files && break
if [ $i -eq 3 ]; then
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/product-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- task: AzureKeyVault@1
displayName: "Azure Key Vault: Get Secrets"
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/product-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ parameters:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- task: AzureCLI@2
inputs:
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/publish-types/publish-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pool:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- bash: |
TAG_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
Expand Down
6 changes: 4 additions & 2 deletions build/azure-pipelines/sdl-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ stages:
outputFormat: "pre"
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- template: ./distro/download-distro.yml

Expand Down Expand Up @@ -179,7 +180,8 @@ stages:
toolMajorVersion: "V2"
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- template: ./distro/download-distro.yml

Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/web/product-build-web.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- template: ../distro/download-distro.yml

Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/win32/cli-build-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ parameters:
steps:
- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- ${{ if ne(parameters.VSCODE_QUALITY, 'oss') }}:
- template: ../cli/cli-apply-patches.yml
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/win32/product-build-win32-cli-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ steps:
- task: NodeTool@0
displayName: "Use Node.js"
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- powershell: node build/setup-npm-registry.js $env:NPM_REGISTRY build
condition: and(succeeded(), ne(variables['NPM_REGISTRY'], 'none'))
Expand Down
3 changes: 2 additions & 1 deletion build/azure-pipelines/win32/product-build-win32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ steps:

- task: NodeTool@0
inputs:
versionSpec: "18.15"
versionSource: fromFile
versionFilePath: .nvmrc

- task: UsePythonVersion@0
inputs:
Expand Down