Skip to content

Commit 39b5262

Browse files
Upgrade to Node.js 20 and remove deprecated mock server build step
- Update all pipelines to use Node 20.x instead of Node 16.x - Remove obsolete packages/tfs-mock-server build step from common-steps.yml - Update package.json engines to require Node >=20.0.0 - Fixes EBADENGINE warnings for shelljs, path-scurry, and system-architecture dependencies - All 181 tests passing locally
1 parent 950cd6e commit 39b5262

File tree

4 files changed

+10
-16
lines changed

4 files changed

+10
-16
lines changed

.azure-pipelines/common-steps.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ steps:
66
clean: true
77

88
- task: UseNode@1
9-
displayName: Use Node 16
9+
displayName: Use Node 20
1010
inputs:
11-
version: "16.x"
11+
version: "20.x"
1212

1313
- task: NpmAuthenticate@0
1414
inputs:
@@ -17,12 +17,6 @@ steps:
1717
- script: npm i -g npm@8.19.4 --force
1818
displayName: Use npm version 8.19.4
1919

20-
- bash: |
21-
cd packages/tfs-mock-server
22-
npm ci
23-
npm run build
24-
displayName: Install and Build Mock Server
25-
2620
- bash: |
2721
npm ci
2822
npm run build
@@ -34,7 +28,6 @@ steps:
3428
export TFX_TRACE="$TFX_TRACE"
3529
npm run test:ci
3630
displayName: Run Tests
37-
continueOnError: true
3831
3932
- task: PublishTestResults@2
4033
displayName: Publish Test Results

.azure-pipelines/release-pipeline.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ extends:
5252
displayName: Publish TFX CLI to npm
5353
condition: eq(variables['Build.SourceBranchName'], 'master')
5454
55-
# Install node 16 for CodeQL 3000
55+
# Install node 20 for CodeQL 3000
5656
- task: NodeTool@0
57-
displayName: Use node 16
57+
displayName: Use node 20
5858
inputs:
59-
versionSpec: "16.x"
59+
versionSpec: "20.x"
6060
- stage: Release
6161
displayName: Release to Latest
6262
trigger: manual
@@ -68,9 +68,9 @@ extends:
6868
clean: true
6969

7070
- task: NodeTool@0
71-
displayName: Use node 16
71+
displayName: Use node 20
7272
inputs:
73-
versionSpec: "16.x"
73+
versionSpec: "20.x"
7474
- script: npm i -g npm@8.19.4 --force
7575
displayName: Use npm version 8.19.4
7676

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
"tmp/": true
99
},
1010
"editor.insertSpaces": false,
11-
"typescript.tsdk": "./node_modules/typescript/lib"
11+
"typescript.tsdk": "./node_modules/typescript/lib",
12+
"azure-pipelines.1ESPipelineTemplatesSchemaFile": true
1213
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"typescript": "^4.9.5"
8080
},
8181
"engines": {
82-
"node": ">=16.0.0"
82+
"node": ">=20.0.0"
8383
},
8484
"author": "Microsoft Corporation",
8585
"contributors": [

0 commit comments

Comments
 (0)