From 277e1728ea210a06847f5bf6a370b44792680eea Mon Sep 17 00:00:00 2001 From: wenyutang-ms Date: Fri, 10 Apr 2026 14:05:07 +0800 Subject: [PATCH] Fix Azure CI by specifying Node.js 20.x version The CI pipeline was failing because it didn't specify a Node.js version, relying on the pre-installed version on the build image (likely Node 18.x). The latest @vscode/vsce uses undici which requires the File global API, only available in Node.js 20+. This caused 'ReferenceError: File is not defined' during vsce package. Add NodeTool@0 task with Node 20.x to align with the GitHub workflow and other Azure pipelines (nightly.yml, rc.yml) which already specify Node 20. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .azure-pipelines/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.azure-pipelines/ci.yml b/.azure-pipelines/ci.yml index aba9622..59e230a 100644 --- a/.azure-pipelines/ci.yml +++ b/.azure-pipelines/ci.yml @@ -49,6 +49,10 @@ extends: versionSpec: "21" jdkArchitectureOption: x64 jdkSourceOption: PreInstalled + - task: NodeTool@0 + displayName: Use Node 20.x + inputs: + versionSpec: 20.x - task: Npm@1 displayName: npm install inputs: