Skip to content

Commit

Permalink
Add extra_npm_args for InstallMarkdownLink.yml and InstallSpellCheck (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcChen46 authored Aug 15, 2024
1 parent 5fcc7d4 commit 9517bb6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Steps/InstallMarkdownLint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
parameters:
- name: extra_npm_args
displayName: Extra npm arguments
type: string
default: ''

steps:

- script: npm install -g [email protected]
- script: npm install -g [email protected] ${{ parameters.extra_npm_args }}
displayName: Install Markdown Linter
condition: succeeded()
7 changes: 6 additions & 1 deletion Steps/InstallSpellCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
parameters:
- name: extra_npm_args
displayName: Extra npm arguments
type: string
default: ''

steps:

- script: npm install -g [email protected]
- script: npm install -g [email protected] ${{ parameters.extra_npm_args }}
displayName: Install cspell npm
condition: succeeded()
8 changes: 8 additions & 0 deletions Steps/PrGate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ parameters:
displayName: Install Build Tools
type: boolean
default: true
- name: extra_npm_args
displayName: Extra npm arguments
type: string
default: ''
- name: install_pip_modules
displayName: Install PIP Modules
type: boolean
Expand Down Expand Up @@ -125,9 +129,13 @@ steps:

- ${{ if eq(parameters.install_tools, true) }}:
- template: InstallSpellCheck.yml
parameters:
extra_npm_args: ${{ parameters.extra_npm_args }}

- ${{ if eq(parameters.install_tools, true) }}:
- template: InstallMarkdownLint.yml
parameters:
extra_npm_args: ${{ parameters.extra_npm_args }}

- ${{ if eq(parameters.install_tools, true) }}:
- template: InstallCoverageTools.yml
Expand Down

0 comments on commit 9517bb6

Please sign in to comment.