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."