Skip to content

Commit

Permalink
chore(ci): fix publishing @next on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Mar 3, 2020
1 parent ed2de2c commit 497a74d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 0 additions & 5 deletions utils/publish_all_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 497a74d

Please sign in to comment.