Skip to content

Commit a804517

Browse files
authored
upgrade node 20.x in pipeline (#3054)
* upgrade node 20.x * update * update * update * update * fix
1 parent 00f19e6 commit a804517

File tree

6 files changed

+16
-11
lines changed

6 files changed

+16
-11
lines changed

eng/pipelines/ci-template.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ steps:
1717
TestProxy: true
1818
templateRoot: azure-sdk-tools
1919
- task: NodeTool@0
20-
displayName: "Install Node.js 18.x"
20+
displayName: "Install Node.js 20.x"
2121
inputs:
22-
versionSpec: "18.x"
22+
versionSpec: "20.x"
2323

2424
- task: UsePythonVersion@0
2525
displayName: "Use Python $(PythonVersion)"
@@ -37,6 +37,14 @@ steps:
3737
displayName: Install TypeSpec
3838
condition: and(succeeded(), ${{ parameters.installTypeSpec }})
3939

40+
- script: npm install -g @typespec/compiler@next
41+
displayName: Install TypeSpec Next
42+
condition: and(succeeded(), ${{ parameters.updateToLatestTypespec }})
43+
44+
- script: npm install -g @azure-tools/[email protected]
45+
displayName: Install @azure-tools/typespec-bump-deps
46+
condition: and(succeeded(), ${{ parameters.updateToLatestTypespec }})
47+
4048
- script: npx @azure-tools/typespec-bump-deps package.json packages/typespec-python/package.json
4149
displayName: Update typespec packages to latest dev version
4250
workingDirectory: $(Build.SourcesDirectory)/autorest.python/

eng/pipelines/nightly.yml

-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
2323
timeoutInMinutes: 120
2424

2525
steps:
26-
- script: npm install -g @typespec/compiler@next
27-
displayName: Install @typespec/compiler@next
28-
2926
- template: ci-template.yml
3027
parameters:
3128
installCadlRanch: true

eng/pipelines/preview.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ extends:
6565
OnlyGenerateTypespec: ${{ parameters.UseTypeSpecNext }}
6666
AutorestInitializationSteps:
6767
- task: NodeTool@0
68-
displayName: "Install Node.js 18.x"
68+
displayName: "Install Node.js 20.x"
6969
inputs:
70-
versionSpec: "18.x"
70+
versionSpec: "20.x"
7171
- task: UsePythonVersion@0
7272
displayName: "Use Python 3.11"
7373
inputs:

eng/pipelines/publish-dev-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ trigger: none
22
pr: none
33

44
variables:
5-
NodeVersion: "12.x"
5+
NodeVersion: "20.x"
66
PythonVersion: "3.8"
77
TestFolder: "$(Build.SourcesDirectory)/test/"
88

eng/pipelines/publish-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extends:
1919
os: linux
2020

2121
variables:
22-
NodeVersion: "14.x"
22+
NodeVersion: "20.x"
2323
AutorestTestFolder: "$(Build.SourcesDirectory)/packages/autorest.python/test/"
2424

2525
steps:

eng/pipelines/sdk_regenerate.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
- checkout: azure-sdk-for-python
4040

4141
- task: NodeTool@0
42-
displayName: 'Install Node.js 18.x'
42+
displayName: 'Install Node.js 20.x'
4343
inputs:
44-
versionSpec: '18.x'
44+
versionSpec: '20.x'
4545

4646
- script: npm install -g [email protected]
4747
displayName: Install pnpm 9.5.0

0 commit comments

Comments
 (0)