Skip to content

Commit 0b14813

Browse files
committed
use deprecated --no-install to keep compatibility with older node.js
1 parent 987dc19 commit 0b14813

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo '::group::🐶 Installing reviewdog ... https://github.com/reviewdog/review
1111
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b "${TEMP_PATH}" "${REVIEWDOG_VERSION}" 2>&1
1212
echo '::endgroup::'
1313

14-
npx --offline eslint --version
14+
npx --no-install -c 'eslint --version'
1515
if [ $? -ne 0 ]; then
1616
echo '::group:: Running `npm install` to install eslint ...'
1717
npm install
@@ -21,7 +21,7 @@ fi
2121
echo "eslint version:$(npx --offline eslint --version)"
2222

2323
echo '::group:: Running eslint with reviewdog 🐶 ...'
24-
npx --offline eslint -f="${ESLINT_FORMATTER}" ${INPUT_ESLINT_FLAGS:-'.'} \
24+
npx --no-install -c "eslint -f="${ESLINT_FORMATTER}" ${INPUT_ESLINT_FLAGS:-'.'}" \
2525
| reviewdog -f=rdjson \
2626
-name="${INPUT_TOOL_NAME}" \
2727
-reporter="${INPUT_REPORTER:-github-pr-review}" \

0 commit comments

Comments
 (0)