Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions eng/common/pipelines/templates/steps/check-spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
# check for errors which would prevent release (i.e.
# public API surface).
#
# NpmConfigUserConfig - Optional path to a user npm config file to use when invoking
# npm commands in the context of this step. If specified, this
# will be set as the npm_config_userconfig environment variable
# so that npm uses the provided config file instead of the default
# user config.
# This check recognizes the setting of variable "Skip.SpellCheck"
# if set to 'true', spellchecking will not be invoked.

Expand All @@ -24,6 +29,9 @@ parameters:
- name: ScriptToValidateUpgrade
type: string
default: ''
- name: NpmConfigUserConfig
type: string
default: ''

steps:
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
Expand All @@ -38,6 +46,9 @@ steps:
-CspellConfigPath ${{ parameters.CspellConfigPath }}
-ExitWithError:(!$${{ parameters.ContinueOnError }})
pwsh: true
env:
${{ if ne(parameters.NpmConfigUserConfig, '') }}:
npm_config_userconfig: ${{ parameters.NpmConfigUserConfig }}
- ${{ if ne('', parameters.ScriptToValidateUpgrade) }}:
- pwsh: |
$changedFiles = ./eng/common/scripts/get-changedfiles.ps1
Expand Down
Loading