Skip to content

Commit

Permalink
Migrate to CFS. Part 10 (#20612)
Browse files Browse the repository at this point in the history
* Add NpmAuthenticate

* Update package-lock.json files

* Add ci step with verify registries in package-lock.json files

* Add the full path to incorrect package-lock.json paths

* Change resolve registry
  • Loading branch information
ivanduplenskikh authored Nov 12, 2024
1 parent b99ae6a commit feaa563
Show file tree
Hide file tree
Showing 15 changed files with 484 additions and 426 deletions.
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/

always-auth=true
7 changes: 7 additions & 0 deletions ci/build-all-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ steps:
inputs:
versionSpec: 20.x

- task: NpmAuthenticate@0
inputs:
workingFile: .npmrc

# npm install
- script: npm install
displayName: npm install
Expand All @@ -36,6 +40,9 @@ steps:
GITHUB_PAT: $(GitHubPAT)
displayName: Verify min agent demands

- script: node ./ci/verify-registries.js
displayName: Verify registries

# Filter out unchanged tasks
- script: node ./ci/filter-tasks.js
displayName: Filter out unchanged tasks
Expand Down
4 changes: 4 additions & 0 deletions ci/build-all-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ steps:
inputs:
versionSpec: 20.x

- task: NpmAuthenticate@0
inputs:
workingFile: .npmrc

# npm install
- script: npm install
displayName: npm install
Expand Down
4 changes: 4 additions & 0 deletions ci/build-single-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ steps:
inputs:
versionSpec: 20.x

- task: NpmAuthenticate@0
inputs:
workingFile: .npmrc

# npm install
- script: npm install
displayName: npm install
Expand Down
3 changes: 3 additions & 0 deletions ci/ci-release-notes/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/

always-auth=true
158 changes: 79 additions & 79 deletions ci/ci-release-notes/package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions ci/ci-test-tasks/build-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ steps:
inputs:
versionSpec: 20.x

- task: NpmAuthenticate@0
inputs:
workingFile: .npmrc

# npm install
- script: npm install
displayName: Npm install
Expand Down
3 changes: 3 additions & 0 deletions ci/ci-test-tasks/test-and-verify-v2/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/

always-auth=true
42 changes: 21 additions & 21 deletions ci/ci-test-tasks/test-and-verify-v2/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions ci/courtesy-push/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
registry=https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/

always-auth=true
30 changes: 15 additions & 15 deletions ci/courtesy-push/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions ci/publish-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ steps:
inputs:
versionSpec: 6.0.0

- task: NpmAuthenticate@0
inputs:
workingFile: .npmrc

# npm install
- script: npm install
displayName: npm install
Expand Down
Loading

0 comments on commit feaa563

Please sign in to comment.