mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-12 18:04:16 +01:00
Run npm install in make-npm.sh (#3831)
This commit is contained in:
parent
a33f70cf20
commit
f9655b9179
2 changed files with 5 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -32,10 +32,10 @@ dist/build/uBlock0.npm: tools/make-nodejs.sh $(sources) $(platform) $(assets)
|
||||||
npm: dist/build/uBlock0.npm
|
npm: dist/build/uBlock0.npm
|
||||||
|
|
||||||
lint: npm
|
lint: npm
|
||||||
cd dist/build/uBlock0.npm && npm install && npm run lint
|
cd dist/build/uBlock0.npm && npm run lint
|
||||||
|
|
||||||
test: npm
|
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)
|
dist/build/uBlock0.dig: tools/make-nodejs.sh $(sources) $(platform) $(assets)
|
||||||
tools/make-dig.sh
|
tools/make-dig.sh
|
||||||
|
|
|
@ -35,6 +35,9 @@ else
|
||||||
mv $tarballname ../uBlock0.npm.tgz
|
mv $tarballname ../uBlock0.npm.tgz
|
||||||
fi
|
fi
|
||||||
ln -sf "$TMPDIR/node_modules"
|
ln -sf "$TMPDIR/node_modules"
|
||||||
|
if [ -z "$GITHUB_ACTIONS" ]; then
|
||||||
|
npm install
|
||||||
|
fi
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
echo "*** uBlock0.npm: Package done."
|
echo "*** uBlock0.npm: Package done."
|
||||||
|
|
Loading…
Reference in a new issue