From f9655b9179200ef28314a60c4e2a8602f6b30b9c Mon Sep 17 00:00:00 2001 From: Manish Jethani Date: Mon, 16 Aug 2021 22:04:54 +0530 Subject: [PATCH] Run npm install in make-npm.sh (#3831) --- Makefile | 4 ++-- tools/make-npm.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a5860eea8..1056d5802 100644 --- a/Makefile +++ b/Makefile @@ -32,10 +32,10 @@ dist/build/uBlock0.npm: tools/make-nodejs.sh $(sources) $(platform) $(assets) npm: dist/build/uBlock0.npm lint: npm - cd dist/build/uBlock0.npm && npm install && npm run lint + cd dist/build/uBlock0.npm && npm run lint test: npm - cd dist/build/uBlock0.npm && npm install && npm run test + cd dist/build/uBlock0.npm && npm run test dist/build/uBlock0.dig: tools/make-nodejs.sh $(sources) $(platform) $(assets) tools/make-dig.sh diff --git a/tools/make-npm.sh b/tools/make-npm.sh index 207ffb783..6bffadc73 100755 --- a/tools/make-npm.sh +++ b/tools/make-npm.sh @@ -35,6 +35,9 @@ else mv $tarballname ../uBlock0.npm.tgz fi ln -sf "$TMPDIR/node_modules" +if [ -z "$GITHUB_ACTIONS" ]; then + npm install +fi cd - echo "*** uBlock0.npm: Package done."