Skip to content

Ensure Rush bootstrap precedes npmrc clearing in Azure publish pipelines - #5917

Merged
David Michon (dmichon-msft) merged 2 commits into
mainfrom
copilot/update-pipelines-user-level-npmrc
Aug 7, 2026
Merged

Ensure Rush bootstrap precedes npmrc clearing in Azure publish pipelines#5917
David Michon (dmichon-msft) merged 2 commits into
mainfrom
copilot/update-pipelines-user-level-npmrc

Conversation

Copilot AI commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

This updates the Azure publish flow so user-level npm registry override does not block Rush bootstrap. Rush is now installed first, then ~/.npmrc is cleared before publish/pack steps that must target the public registry.

  • Publish-flow ordering

    • Added an explicit Rush bootstrap step at the start of both publish templates:
      • common/config/azure-pipelines/templates/publish.yaml
      • common/config/azure-pipelines/templates/pack.yaml
    • Bootstrap uses install-run-rush with --help to ensure Rush is available before registry cleanup.
  • Registry cleanup timing

    • Kept the existing rm -f "$HOME/.npmrc" behavior, but moved it to run after Rush bootstrap and before rush publish --publish flows.
  • Resulting execution pattern

    • Install RushClear user npmrc for publishRush publish/pack
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'

Copilot AI and others added 2 commits August 6, 2026 01:54
Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
Co-authored-by: dmichon-msft <26827560+dmichon-msft@users.noreply.github.com>
@dmichon-msft
David Michon (dmichon-msft) merged commit 8ab4348 into main Aug 7, 2026
9 checks passed
@dmichon-msft
David Michon (dmichon-msft) deleted the copilot/update-pipelines-user-level-npmrc branch August 7, 2026 00:41
@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

3 participants