From 314d6082f216543682e61278d51f0478decc386c Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Tue, 3 Aug 2021 12:47:26 -0400 Subject: [PATCH] Fix broken GitHub actions Related discussion: - https://github.com/gorhill/uBlock/commit/ad69c760fb009c5d07a04735fc7f7ca457280248#commitcomment-54363709 --- tools/make-nodejs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/make-nodejs.sh b/tools/make-nodejs.sh index cc5fe95bc..654ebb310 100755 --- a/tools/make-nodejs.sh +++ b/tools/make-nodejs.sh @@ -56,7 +56,10 @@ cp platform/nodejs/*.js $DES/ cp platform/nodejs/*.json $DES/ cp LICENSE.txt $DES/ -eslint -c platform/nodejs/eslintrc.json $DES/js $DES/*.js +# Ignore eslint when building with GitHub Actions +if [ -z "$GITHUB_REF" ]; then + eslint -c platform/nodejs/eslintrc.json $DES/js $DES/*.js +fi if [ "$1" = all ]; then echo "*** uBlock0.nodejs: Creating plain package..."