File tree Expand file tree Collapse file tree
eng/common/pipelines/templates/steps Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111# check for errors which would prevent release (i.e.
1212# public API surface).
1313#
14+ # NpmConfigUserConfig - Optional path to a user npm config file to use when invoking
15+ # npm commands in the context of this step. If specified, this
16+ # will be set as the npm_config_userconfig environment variable
17+ # so that npm uses the provided config file instead of the default
18+ # user config.
1419# This check recognizes the setting of variable "Skip.SpellCheck"
1520# if set to 'true', spellchecking will not be invoked.
1621
@@ -24,6 +29,9 @@ parameters:
2429 - name : ScriptToValidateUpgrade
2530 type : string
2631 default : ' '
32+ - name : NpmConfigUserConfig
33+ type : string
34+ default : ' '
2735
2836steps :
2937 - ${{ if eq(variables['Build.Reason'], 'PullRequest') }} :
3846 -CspellConfigPath ${{ parameters.CspellConfigPath }}
3947 -ExitWithError:(!$${{ parameters.ContinueOnError }})
4048 pwsh : true
49+ env :
50+ ${{ if ne(parameters.NpmConfigUserConfig, '') }} :
51+ npm_config_userconfig : ${{ parameters.NpmConfigUserConfig }}
4152 - ${{ if ne('', parameters.ScriptToValidateUpgrade) }} :
4253 - pwsh : |
4354 $changedFiles = ./eng/common/scripts/get-changedfiles.ps1
You can’t perform that action at this time.
0 commit comments