Run npm install in make-npm.sh (#3831)

This commit is contained in:
Manish Jethani 2021-08-16 22:04:54 +05:30 committed by GitHub
parent a33f70cf20
commit f9655b9179
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

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