From 599d23587671cd8ad5fafdaf169d8e440cb97fa6 Mon Sep 17 00:00:00 2001 From: bschnurr Date: Fri, 25 Sep 2026 16:18:19 -0700 Subject: [PATCH] Use internal npm feed for API package pipeline Configure the npm publishing pipeline through the shared Pylance-Eng setup template so installs authenticate against Pylance_PublicPackages and lockfile URLs are redirected from the public registry. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 16c019ed-4e8f-4460-ad18-3b8cd11ea04b --- build/azure-pipeline.npm.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/build/azure-pipeline.npm.yml b/build/azure-pipeline.npm.yml index 19c82fda..aa42c2a1 100644 --- a/build/azure-pipeline.npm.yml +++ b/build/azure-pipeline.npm.yml @@ -9,6 +9,10 @@ resources: type: git name: 1ESPipelineTemplates/MicroBuildTemplate ref: refs/tags/release + - repository: templates + type: git + name: DevDiv/Pylance-Eng + ref: refs/heads/main parameters: - name: quality @@ -31,6 +35,10 @@ variables: value: '@vscode/python-environments' - name: PackageDir value: api + - name: NodeVersion + value: '22.21.1' + - name: AZURE_ARTIFACTS_FEED + value: 'https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/Pylance_PublicPackages/npm/registry/' - name: npmTag ${{ if eq(parameters.quality, 'preview') }}: value: next @@ -66,10 +74,11 @@ extends: targetPath: $(Build.ArtifactStagingDirectory) artifactName: npm-package steps: - - task: NodeTool@0 - inputs: - versionSpec: '22.21.1' - displayName: Select Node version + - template: azure-pipelines/extension/templates/steps/setup.yml@templates + parameters: + installPython: false + customNPMRegistry: $(AZURE_ARTIFACTS_FEED) + nodeVersion: $(NodeVersion) - script: npm install workingDirectory: $(Build.SourcesDirectory)/api