From fe8eb18ad3cf409d62ff1e512c0a18d7ce6d8509 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Mon, 6 Jan 2025 18:09:35 +0200 Subject: [PATCH] Try using the userconfig npmrc cmd param instead of the env variable --- azure-devops/templates/cd-template.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/azure-devops/templates/cd-template.yml b/azure-devops/templates/cd-template.yml index 7cffd160e..27222ea0a 100644 --- a/azure-devops/templates/cd-template.yml +++ b/azure-devops/templates/cd-template.yml @@ -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