diff --git a/.travis.yml b/.travis.yml index 5f0dc248e8..cc59300695 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/utils/publish_all_packages.sh b/utils/publish_all_packages.sh index 82e935b1d9..1feb5721c9 100755 --- a/utils/publish_all_packages.sh +++ b/utils/publish_all_packages.sh @@ -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