Skip to content

Commit 8d9b8c6

Browse files
Use authenticated npmrc by default for cspell (#7192)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
1 parent 2a4f1aa commit 8d9b8c6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ parameters:
3535

3636
steps:
3737
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
38+
- template: /eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml
3839
- task: PowerShell@2
3940
displayName: Check spelling (cspell)
4041
condition: and(succeeded(), ne(variables['Skip.SpellCheck'],'true'))
@@ -46,9 +47,6 @@ steps:
4647
-CspellConfigPath ${{ parameters.CspellConfigPath }}
4748
-ExitWithError:(!$${{ parameters.ContinueOnError }})
4849
pwsh: true
49-
env:
50-
${{ if ne(parameters.NpmConfigUserConfig, '') }}:
51-
npm_config_userconfig: ${{ parameters.NpmConfigUserConfig }}
5250
- ${{ if ne('', parameters.ScriptToValidateUpgrade) }}:
5351
- pwsh: |
5452
$changedFiles = ./eng/common/scripts/get-changedfiles.ps1

0 commit comments

Comments
 (0)