From 73c472bbdfaa0b1aee025e4ffec86d9b17697bd4 Mon Sep 17 00:00:00 2001 From: Nick Sheck Date: Fri, 8 Nov 2019 16:34:32 -0800 Subject: [PATCH] Add explicit loading path for eslint --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 9a3d3a9..42423a5 100644 --- a/main.js +++ b/main.js @@ -74,7 +74,7 @@ async function runEslint () { `git diff --name-only --diff-filter AM ${compareSha}` ) - const eslint = require('eslint') + const eslint = require(`${GITHUB_WORKSPACE}/node_modules/eslint`) const cli = new eslint.CLIEngine() const extensions = INPUT_EXTENSIONS.split(',')