Skip to content

Commit feaa563

Browse files
Migrate to CFS. Part 10 (#20612)
* 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
1 parent b99ae6a commit feaa563

File tree

15 files changed

+484
-426
lines changed

15 files changed

+484
-426
lines changed

.npmrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
registry=https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/
2+
3+
always-auth=true

ci/build-all-steps.yml

+7
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ steps:
2121
inputs:
2222
versionSpec: 20.x
2323

24+
- task: NpmAuthenticate@0
25+
inputs:
26+
workingFile: .npmrc
27+
2428
# npm install
2529
- script: npm install
2630
displayName: npm install
@@ -36,6 +40,9 @@ steps:
3640
GITHUB_PAT: $(GitHubPAT)
3741
displayName: Verify min agent demands
3842

43+
- script: node ./ci/verify-registries.js
44+
displayName: Verify registries
45+
3946
# Filter out unchanged tasks
4047
- script: node ./ci/filter-tasks.js
4148
displayName: Filter out unchanged tasks

ci/build-all-tasks.yml

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ steps:
2121
inputs:
2222
versionSpec: 20.x
2323

24+
- task: NpmAuthenticate@0
25+
inputs:
26+
workingFile: .npmrc
27+
2428
# npm install
2529
- script: npm install
2630
displayName: npm install

ci/build-single-steps.yml

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ steps:
2626
inputs:
2727
versionSpec: 20.x
2828

29+
- task: NpmAuthenticate@0
30+
inputs:
31+
workingFile: .npmrc
32+
2933
# npm install
3034
- script: npm install
3135
displayName: npm install

ci/ci-release-notes/.npmrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
registry=https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/
2+
3+
always-auth=true

ci/ci-release-notes/package-lock.json

+79-79
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ci/ci-test-tasks/build-init.yml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ steps:
1616
inputs:
1717
versionSpec: 20.x
1818

19+
- task: NpmAuthenticate@0
20+
inputs:
21+
workingFile: .npmrc
22+
1923
# npm install
2024
- script: npm install
2125
displayName: Npm install
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
registry=https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/
2+
3+
always-auth=true

ci/ci-test-tasks/test-and-verify-v2/package-lock.json

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ci/courtesy-push/.npmrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
registry=https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/PipelineTools_PublicPackages/npm/registry/
2+
3+
always-auth=true

ci/courtesy-push/package-lock.json

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ci/publish-steps.yml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ steps:
1616
inputs:
1717
versionSpec: 6.0.0
1818

19+
- task: NpmAuthenticate@0
20+
inputs:
21+
workingFile: .npmrc
22+
1923
# npm install
2024
- script: npm install
2125
displayName: npm install

0 commit comments

Comments
 (0)