Skip to content

Use authenticated npmrc#49557

Open
chidozieononiwu wants to merge 2 commits into
mainfrom
net-iso
Open

Use authenticated npmrc#49557
chidozieononiwu wants to merge 2 commits into
mainfrom
net-iso

Conversation

@chidozieononiwu

Copy link
Copy Markdown
Member

This pull request updates the eng/automation/generation.yml pipeline to improve authentication for npm operations by ensuring a properly configured .npmrc file is used during package installation steps. The main focus is on securely handling npm credentials during the pipeline execution.

Pipeline authentication improvements:

  • Added a step to create an authenticated .npmrc file using the /eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml template, specifying the path as $(Agent.TempDirectory)/release/.npmrc.
  • Updated npm-related steps (autorest installation and tsp-client installation) to use the authenticated .npmrc by setting the npm_config_userconfig environment variable.

@chidozieononiwu chidozieononiwu self-assigned this Jun 18, 2026
Copilot AI review requested due to automatic review settings June 18, 2026 17:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the eng/automation/generation.yml automation pipeline to use an authenticated .npmrc during npm operations, improving how npm credentials are handled in the generation workflow.

Changes:

  • Adds a shared step to create/authenticate an .npmrc in $(Agent.TempDirectory).
  • Configures npm install steps (autorest global install and tsp-client install) to use that .npmrc via npm_config_userconfig.

Comment thread eng/automation/generation.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants