Skip to content

Commit 17d49da

Browse files
jt-ntimbwhite
authored andcommitted
Set npmjs registry
Signed-off-by: James Taylor <[email protected]>
1 parent 73b27ef commit 17d49da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/azure-pipelines.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,15 @@ stages:
178178
touch $(Agent.TempDirectory)/.npmrc
179179
echo '##vso[task.setvariable variable=NPM_CONFIG_USERCONFIG]$(Agent.TempDirectory)/.npmrc'
180180
displayName: 'create user .npmrc file'
181+
- script: |
182+
npm config set registry https://registry.npmjs.org/
183+
npm config ls
184+
displayName: 'set npmjs registry'
181185
- task: npmAuthenticate@0
182186
inputs:
183187
workingFile: '$(Agent.TempDirectory)/.npmrc'
184188
customEndpoint: 'fabric-chainode-node-npm'
185189
- script: |
186-
npm config ls
187-
npm login
188190
# Add or delete modules from here..
189191
for module in fabric-shim fabric-shim-crypto fabric-contract-api; do
190192
if [ -d "$module" ]; then

0 commit comments

Comments
 (0)