Skip to content

Commit

Permalink
Try using the userconfig npmrc cmd param instead of the env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
turbobobbytraykov committed Jan 6, 2025
1 parent fbf725d commit fe8eb18
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions azure-devops/templates/cd-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,11 @@ steps:
# }

- task: CmdLine@2
displayName: 'Update packages trial->licensed using angular schematics'
inputs:
script: |
echo "NPM_CONFIG_USERCONFIG is set to: $NPM_CONFIG_USERCONFIG"
cat $NPM_CONFIG_USERCONFIG
npx ng g @igniteui/angular-schematics:upgrade-packages --skip-install
npx ng g @igniteui/angular-schematics:upgrade-packages --skip-install --userconfig=$(Build.SourcesDirectory)\.npmrc
failOnStderr: true
env:
NPM_CONFIG_USERCONFIG: $(Build.SourcesDirectory)/.npmrc

- task: Npm@1
displayName: npm install
Expand Down

0 comments on commit fe8eb18

Please sign in to comment.