From 81ee0e681d498976804d2674596ea84c7af4315a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Aug 2026 01:54:12 +0000 Subject: [PATCH 1/2] Configure npm proxy registry in Azure pipelines Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com> --- common/config/azure-pipelines/templates/install-node.yaml | 6 ++++++ common/config/azure-pipelines/templates/pack.yaml | 3 +++ common/config/azure-pipelines/templates/publish.yaml | 3 +++ 3 files changed, 12 insertions(+) diff --git a/common/config/azure-pipelines/templates/install-node.yaml b/common/config/azure-pipelines/templates/install-node.yaml index c7c64960719..c7f782a991c 100644 --- a/common/config/azure-pipelines/templates/install-node.yaml +++ b/common/config/azure-pipelines/templates/install-node.yaml @@ -8,3 +8,9 @@ steps: inputs: versionSpec: '${{ parameters.NodeMajorVersion }}.x' displayName: 'Install Node.js ${{ parameters.NodeMajorVersion }}' + + - bash: | + cat > "$HOME/.npmrc" <<'EOF' + registry=https://packagefeedproxy.microsoft.io/npm/ + EOF + displayName: 'Set user npm registry to packagefeedproxy' diff --git a/common/config/azure-pipelines/templates/pack.yaml b/common/config/azure-pipelines/templates/pack.yaml index a54eb77e822..b14313ac837 100644 --- a/common/config/azure-pipelines/templates/pack.yaml +++ b/common/config/azure-pipelines/templates/pack.yaml @@ -1,4 +1,7 @@ steps: + - bash: 'rm -f "$HOME/.npmrc"' + displayName: 'Clear user npmrc for publish' + - template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self parameters: Arguments: > diff --git a/common/config/azure-pipelines/templates/publish.yaml b/common/config/azure-pipelines/templates/publish.yaml index 4e964bb937e..a6b96a39678 100644 --- a/common/config/azure-pipelines/templates/publish.yaml +++ b/common/config/azure-pipelines/templates/publish.yaml @@ -6,6 +6,9 @@ parameters: default: $(Build.SourceBranchName) steps: + - bash: 'rm -f "$HOME/.npmrc"' + displayName: 'Clear user npmrc for publish' + - template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self parameters: Arguments: > From 003333e220b92937e36067147320712d2fec30f2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Aug 2026 22:40:42 +0000 Subject: [PATCH 2/2] Ensure Rush installs before clearing npmrc in publish flow Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com> --- common/config/azure-pipelines/templates/pack.yaml | 5 +++++ common/config/azure-pipelines/templates/publish.yaml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/common/config/azure-pipelines/templates/pack.yaml b/common/config/azure-pipelines/templates/pack.yaml index b14313ac837..9021c171445 100644 --- a/common/config/azure-pipelines/templates/pack.yaml +++ b/common/config/azure-pipelines/templates/pack.yaml @@ -1,4 +1,9 @@ steps: + - template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self + parameters: + Arguments: '--help' + DisplayName: 'Install Rush' + - bash: 'rm -f "$HOME/.npmrc"' displayName: 'Clear user npmrc for publish' diff --git a/common/config/azure-pipelines/templates/publish.yaml b/common/config/azure-pipelines/templates/publish.yaml index a6b96a39678..578cac0f310 100644 --- a/common/config/azure-pipelines/templates/publish.yaml +++ b/common/config/azure-pipelines/templates/publish.yaml @@ -6,6 +6,11 @@ parameters: default: $(Build.SourceBranchName) steps: + - template: /common/config/azure-pipelines/templates/install-run-rush.yaml@self + parameters: + Arguments: '--help' + DisplayName: 'Install Rush' + - bash: 'rm -f "$HOME/.npmrc"' displayName: 'Clear user npmrc for publish'