Skip to content

Commit 21c3ba6

Browse files
azure-sdkconniey
andauthored
Add serviceConnections parameter to npmAuthenticate task. (#47635)
Co-authored-by: Connie Yau <[email protected]>
1 parent ac066c9 commit 21c3ba6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ parameters:
66
- name: CustomCondition
77
type: string
88
default: succeeded()
9+
- name: ServiceConnection
10+
type: string
11+
default: ''
912

1013
steps:
1114
- pwsh: |
@@ -21,8 +24,10 @@ steps:
2124
$content | Out-File '${{ parameters.npmrcPath }}'
2225
displayName: 'Create .npmrc'
2326
condition: ${{ parameters.CustomCondition }}
27+
2428
- task: npmAuthenticate@0
2529
displayName: Authenticate .npmrc
2630
condition: ${{ parameters.CustomCondition }}
2731
inputs:
2832
workingFile: ${{ parameters.npmrcPath }}
33+
azureDevOpsServiceConnection: ${{ parameters.ServiceConnection }}

0 commit comments

Comments
 (0)