diff --git a/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml b/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml index cb29d1312eb..b13ed7666e3 100644 --- a/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml +++ b/eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml @@ -3,6 +3,7 @@ parameters: type: string - name: registryUrl type: string + default: 'https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/' - name: CustomCondition type: string default: succeeded() diff --git a/eng/pipelines/templates/jobs/verify-installers.yml b/eng/pipelines/templates/jobs/verify-installers.yml index c9b6f45911d..5a8ae279379 100644 --- a/eng/pipelines/templates/jobs/verify-installers.yml +++ b/eng/pipelines/templates/jobs/verify-installers.yml @@ -74,10 +74,16 @@ jobs: condition: and(succeeded(), contains(variables['Agent.OS'], 'Windows')) workingDirectory: hosting + - template: /eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml + parameters: + npmrcPath: $(Agent.TempDirectory)/verify/.npmrc + - bash: nohup npx -y http-server & displayName: Start server in hosting/ (bash) condition: and(succeeded(), not(contains(variables['Agent.OS'], 'Windows'))) workingDirectory: hosting + env: + npm_config_userconfig: "$(Agent.TempDirectory)/verify/.npmrc" - pwsh: | Start-Process npx.cmd `