Skip to content

Commit f571ae6

Browse files
committed
Added check to fail if NPM commands are used 1771790441
1 parent 2c8996f commit f571ae6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pull-request-no-npm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
run: |
1515
LOCATIONS=".github/workflows docs/docs package.json"
1616
17-
if grep -rE '\bnpm\b' "$LOCATIONS"; then
17+
if grep -rE '^[^#]*\bnpm\b' "$LOCATIONS"; then
1818
echo "::error::Forbidden 'npm' command found in one or more workflow files!"
1919
echo "Please use 'pnpm' instead."
2020
exit 1

0 commit comments

Comments
 (0)