Skip to content

Commit

Permalink
Set npmjs registry
Browse files Browse the repository at this point in the history
Signed-off-by: James Taylor <[email protected]>
  • Loading branch information
jt-nti authored and mbwhite committed Nov 27, 2019
1 parent 73b27ef commit 17d49da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,15 @@ stages:
touch $(Agent.TempDirectory)/.npmrc
echo '##vso[task.setvariable variable=NPM_CONFIG_USERCONFIG]$(Agent.TempDirectory)/.npmrc'
displayName: 'create user .npmrc file'
- script: |
npm config set registry https://registry.npmjs.org/
npm config ls
displayName: 'set npmjs registry'
- task: npmAuthenticate@0
inputs:
workingFile: '$(Agent.TempDirectory)/.npmrc'
customEndpoint: 'fabric-chainode-node-npm'
- script: |
npm config ls
npm login
# Add or delete modules from here..
for module in fabric-shim fabric-shim-crypto fabric-contract-api; do
if [ -d "$module" ]; then
Expand Down

0 comments on commit 17d49da

Please sign in to comment.