Skip to content

Commit

Permalink
chore: Move Semantic Release workaround to shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
honzajavorek committed Aug 11, 2017
1 parent 9709bf2 commit 976f540
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -26,5 +26,4 @@ jobs:
script: "npm run test:coverage && npm run coveralls" script: "npm run test:coverage && npm run coveralls"
- stage: "semantic release" - stage: "semantic release"
node_js: "6" node_js: "6"
# https://github.com/semantic-release/semantic-release/issues/390 script: " npm run semantic-release || true"
script: "TRAVIS_JOB_NUMBER=WORKAROUND.1 npm run semantic-release || true"
9 changes: 9 additions & 0 deletions scripts/semantic-release.sh
Expand Up @@ -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 && \ $SEMANTIC_RELEASE pre && \
npm publish && \ npm publish && \
add_stable_dist_tag && \ add_stable_dist_tag && \
Expand Down

0 comments on commit 976f540

Please sign in to comment.