Skip to content

Commit 6224ae1

Browse files
Migration to CFS (#1060)
* Migration to CFS * Add NpmAuthenticate@0 task before the installation task
1 parent 3de580e commit 6224ae1

File tree

6 files changed

+440
-375
lines changed

6 files changed

+440
-375
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

azure-pipelines-steps-node.yml

+8
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ steps:
88
inputs:
99
versionSpec: $(nodeVersion)
1010

11+
- task: NpmAuthenticate@0
12+
inputs:
13+
workingFile: .npmrc
14+
1115
- script: npm ci
1216
displayName: (task-lib) npm ci
1317
workingDirectory: node
@@ -40,6 +44,10 @@ steps:
4044
projects: 'powershell/CompiledHelpers/VstsTaskSdk.csproj'
4145
arguments: '--configuration Release'
4246

47+
- task: NpmAuthenticate@0
48+
inputs:
49+
workingFile: .npmrc
50+
4351
- script: npm ci
4452
displayName: (VstsTaskSdk) npm ci
4553
workingDirectory: powershell

node/.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

0 commit comments

Comments
 (0)