fix: use private npm feed in CI to bypass network isolation#3564
Merged
gavinbarron merged 1 commit intomainfrom Mar 24, 2026
Merged
fix: use private npm feed in CI to bypass network isolation#3564gavinbarron merged 1 commit intomainfrom
gavinbarron merged 1 commit intomainfrom
Conversation
Add tools/Configure-PrivateNpmFeed.ps1 script that creates .npmrc files pointing to the Azure Artifacts PowerShell_V2_Build npm feed. Update install-tools.yml to run the script and authenticate via npmAuthenticate before installing autorest and rush. Two .npmrc files are configured at build time: - Repo root: for global npm install commands (autorest, rush CLI) - autorest.powershell/common/config/rush/.npmrc: for rush install The Rush .npmrc in the repo retains the public registry default so external contributors can still install from registry.npmjs.org. Fixes #3563 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ramsessanchez
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes CI build failures in the command metadata refresh pipeline caused by network isolation rules blocking access to the public npm registry.
Build Failure
https://microsoftgraph.visualstudio.com/Graph%20Developer%20Experiences/_build/results?buildId=213646&view=logs&j=ede078fe-2a98-5bef-7d41-ce060c17395e&t=16397dbc-9b9b-5731-79d9-dd4acfa7ba0f
Changes
n 2. \\ pmAuthenticate@0\\ — authenticates the root \\.npmrc\\n 3. \pmAuthenticate@0\ — authenticates the Rush \.npmrc\`n
External Contributors
The Rush \.npmrc\ in the repo still defaults to \
egistry.npmjs.org\, so external contributors can clone and install normally. The private feed is only configured at build time in CI.
Fixes #3563