chore(ci): fix publishing @next on travis

This commit is contained in:
Andrey Lushnikov 2020-03-02 18:26:45 -08:00
parent ed2de2c2cb
commit 497a74d8e2
2 changed files with 7 additions and 7 deletions

View File

@ -38,6 +38,11 @@ jobs:
include:
- node_js: '12'
after_success:
before_deploy:
- 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

View File

@ -20,11 +20,6 @@ if [[ $# < 1 ]]; then
exit 1
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
echo "ERROR: NPM is not found"
exit 1