Skip to content

Commit e69fec3

Browse files
Sync eng/common directory with azure-sdk-tools for PR 15504 (#38429)
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#15504 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
1 parent 3de1abe commit e69fec3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

eng/common/pipelines/templates/steps/check-spelling.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
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

2836
steps:
2937
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
@@ -38,6 +46,9 @@ steps:
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

0 commit comments

Comments
 (0)