You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a4a569e
Browse filesBrowse the repository at this point in the historyBrowse files
This pull request standardizes the creation and authentication of
`.npmrc` files across multiple pipelines by introducing a new reusable
template in
`eng/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:**
* Added a new, parameterized template `create-authenticated-npmrc.yml`
in `eng/common/pipelines/templates/steps/` to create and authenticate
`.npmrc` files for npm registry access. This template supports
customizable parameters and sets up authentication using the
`npmAuthenticate@0` task.
* Updated multiple pipeline files (including `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]](diffhunk://#diff-50653fd56ca297fe36cce63c692f3bb54b6e0c6ec4845cec48f3f9e31e03a89fR32-R34)
[[2]](diffhunk://#diff-384e4a070f1a434ae1a958c73f40ac5fcd1c73bf88d9c343c6de05eab19be5ccR62-R63)
[[3]](diffhunk://#diff-ebf19ec9b8a02e0eeb5ae1b56d102bf0c066de16b7882fbabe4c2ae107c62f4dR54-R55)
[[4]](diffhunk://#diff-4e7c6928f4ef45999e81f7e57bbc59d49275f6496fd2cfa7476dc218555d23afR27)
[[5]](diffhunk://#diff-9e0ecf3eecec8baef1816b5d44be550486a40f4738b975bffd2efd55e90c4512R45-R46)
[[6]](diffhunk://#diff-00bf0f8f6f160e1195dda4724f0d3b1c6c097136b8d413c2be53c7484bd844bdR128-R130)
[[7]](diffhunk://#diff-dda08ab39d3fa47345cdb9dc131fca57b121bd5630dbce9116b1838054b04232R389)
**Cleanup and Removal of Redundant Code:**
* Removed the old `create-authenticated-npmrc.yml` template from
`eng/emitters/pipelines/templates/steps/`, which previously handled
`.npmrc` creation and authentication in a less flexible manner.
* Updated emitter pipeline stages to reference the new centralized
template instead of the deleted emitter-specific version.
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.
0 commit comments