chore(ci): fix publishing @next on travis
This commit is contained in:
parent
ed2de2c2cb
commit
497a74d8e2
|
|
@ -38,6 +38,11 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- node_js: '12'
|
- node_js: '12'
|
||||||
|
|
||||||
after_success:
|
before_deploy:
|
||||||
- node utils/apply_next_version.js
|
- node utils/apply_next_version.js
|
||||||
- ./utils/publish_all_packages.sh --tip-of-tree
|
|
||||||
|
deploy:
|
||||||
|
provider: script
|
||||||
|
script: utils/publish_all_packages.sh --tip-of-tree
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,6 @@ if [[ $# < 1 ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $(git rev-parse --abbrev-ref HEAD) != "master" ]]; then
|
|
||||||
echo "ERROR: Cannot publish from branch '$(git rev-parse --abbrev-ref HEAD)' - it has to be 'master'"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! command -v npm >/dev/null; then
|
if ! command -v npm >/dev/null; then
|
||||||
echo "ERROR: NPM is not found"
|
echo "ERROR: NPM is not found"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue