Permalink
Browse files

chore: Move Semantic Release workaround to shell script

  • Loading branch information...
honzajavorek committed Aug 11, 2017
1 parent 9709bf2 commit 976f540bca905ad693f325aee5926e85fa64d1b2
Showing with 10 additions and 2 deletions.
  1. +1 −2 .travis.yml
  2. +9 −0 scripts/semantic-release.sh
View
@@ -26,5 +26,4 @@ jobs:
script: "npm run test:coverage && npm run coveralls"
- stage: "semantic release"
node_js: "6"
# https://github.com/semantic-release/semantic-release/issues/390
script: "TRAVIS_JOB_NUMBER=WORKAROUND.1 npm run semantic-release || true"
script: " npm run semantic-release || true"
@@ -14,6 +14,15 @@ add_stable_dist_tag() {
}
# Semantic Release has built-in workaround for waiting until all parallel
# builds finish on Travis CI. However, Travis CI introduced "build stages"
# to tackle exactly this problem. When using the build stages, the built-in
# workaround makes Semantic Release unusable, so we need to trick it.
#
# Tracked as https://github.com/semantic-release/semantic-release/issues/390
export TRAVIS_JOB_NUMBER="WORKAROUND.1"
$SEMANTIC_RELEASE pre && \
npm publish && \
add_stable_dist_tag && \

0 comments on commit 976f540

Please sign in to comment.