From 24091992d9ec303bbd32f8505ecd96916821407d Mon Sep 17 00:00:00 2001 From: Nick Sheck Date: Thu, 3 Oct 2024 11:10:15 -0700 Subject: [PATCH] Try using local install instead of npx --- dist/index.js | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 45be5d7..f6de216 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26363,7 +26363,7 @@ async function run() { changedFiles = await (0, git_utils_1.detectChangedFiles)(compareSha); } core.debug(`Changed files: ${changedFiles}`); - let { stdout: eslintOut } = await (0, exec_1.getExecOutput)("npx eslint --format=json", changedFiles, + let { stdout: eslintOut } = await (0, exec_1.getExecOutput)("node_modules/.bin/eslint --format=json", changedFiles, // Eslint will return exit code 1 if it finds linting problems, but that is // expected and we don't want to stop execution because of it. { ignoreReturnCode: true }); diff --git a/src/index.ts b/src/index.ts index 8411d50..408e3c5 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,7 +35,7 @@ async function run() { core.debug(`Changed files: ${changedFiles}`) let { stdout: eslintOut } = await getExecOutput( - "npx eslint --format=json", + "node_modules/.bin/eslint --format=json", changedFiles, // Eslint will return exit code 1 if it finds linting problems, but that is // expected and we don't want to stop execution because of it.