diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index aa92b8ab3c..6dbf114432 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -46,7 +46,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 cache: npm cache-dependency-path: vscode-powershell/package-lock.json diff --git a/.pipelines/vscode-powershell-Official.yml b/.pipelines/vscode-powershell-Official.yml index 7d3a02c2d9..6b0a2b372d 100644 --- a/.pipelines/vscode-powershell-Official.yml +++ b/.pipelines/vscode-powershell-Official.yml @@ -82,6 +82,10 @@ extends: inputs: system: Custom customVersion: $(package.version) + - task: UseNode@1 + displayName: Use Node 20.x + inputs: + version: 20.x - task: DownloadPipelineArtifact@2 displayName: Download PowerShellEditorServices inputs: @@ -120,9 +124,9 @@ extends: skipComponentGovernanceDetection: true steps: - task: UseNode@1 - displayName: Use Node 18.x + displayName: Use Node 20.x inputs: - version: 18.x + version: 20.x - task: UseDotNet@2 displayName: Use .NET 8.x SDK inputs: @@ -198,6 +202,10 @@ extends: steps: - download: current displayName: Download artifacts + - task: UseNode@1 + displayName: Use Node 20.x + inputs: + version: 20.x - pwsh: npm ci displayName: Install NPM packages (for vsce) - task: AzureCLI@2