Use default npmrc userprofile#11045
Open
chidozieononiwu wants to merge 3 commits into
Open
Conversation
commit: |
Contributor
|
No changes needing a change description found. |
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.
This pull request standardizes the creation and authentication of
.npmrcfiles across multiple pipelines by introducing a new reusable template ineng/common/pipelines/templates/steps/create-authenticated-npmrc.yml. It replaces older, package-specific implementations and updates various pipeline YAML files to use this new template, ensuring consistency and maintainability in how authenticated npm registry access is handled.Centralization and Standardization of npm Authentication:
create-authenticated-npmrc.ymlineng/common/pipelines/templates/steps/to create and authenticate.npmrcfiles for npm registry access. This template supports customizable parameters and sets up authentication using thenpmAuthenticate@0task.ci.yml,build-step.yml,test-step.yml,install.yml, and others) to use the new common template for npm authentication, replacing direct script steps and previous template usages. [1] [2] [3] [4] [5] [6] [7]Cleanup and Removal of Redundant Code:
create-authenticated-npmrc.ymltemplate fromeng/emitters/pipelines/templates/steps/, which previously handled.npmrccreation and authentication in a less flexible manner.These changes improve maintainability by reducing duplication, making it easier to update npm authentication logic in one place, and ensuring all pipelines use the same approach for authenticated npm registry access.