From 497a74d8e241535c8c7e5771fa3dc8bc3f081c73 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 2 Mar 2020 18:26:45 -0800 Subject: [PATCH] chore(ci): fix publishing @next on travis --- .travis.yml | 9 +++++++-- utils/publish_all_packages.sh | 5 ----- 2 files changed, 7 insertions(+), 7 deletions(-) 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