only publish babel-cli when the directory has had changes since the last version - fixes #1848
This commit is contained in:
parent
9c8cb33a09
commit
d4edce6559
5
Makefile
5
Makefile
@ -103,10 +103,7 @@ publish-runtime:
|
|||||||
npm publish
|
npm publish
|
||||||
|
|
||||||
publish-cli:
|
publish-cli:
|
||||||
cd packages; \
|
@./tools/publish-cli.sh
|
||||||
node build-cli.js; \
|
|
||||||
cd babel-cli; \
|
|
||||||
npm publish
|
|
||||||
|
|
||||||
bootstrap:
|
bootstrap:
|
||||||
npm list --global --depth 1 babel >/dev/null 2>&1 && npm uninstall -g babel || true
|
npm list --global --depth 1 babel >/dev/null 2>&1 && npm uninstall -g babel || true
|
||||||
|
|||||||
12
tools/publish-cli.sh
Executable file
12
tools/publish-cli.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
LAST_TAG=$(git describe $(git rev-list --tags --max-count=1))
|
||||||
|
TAG_DIFF=$(git diff $LAST_TAG -- packages/babel-cli/)
|
||||||
|
|
||||||
|
if [ -n "$TAG_DIFF" ]; then
|
||||||
|
cd ../packages
|
||||||
|
node build-cli.js
|
||||||
|
|
||||||
|
cd babel-cli
|
||||||
|
npm publish
|
||||||
|
fi
|
||||||
Loading…
x
Reference in New Issue
Block a user