Skip to content

Commit

Permalink
fix(ci): install semantic-release on ci only
Browse files Browse the repository at this point in the history
The "semantic-release" package crashes when used on Node <8.3. To work around this, we can install "semantic-release" in the "after_success" phase and the failed installation on Node 6 won't break the build.

More info here: semantic-release/semantic-release#445
  • Loading branch information
aleclarson committed Dec 12, 2018
1 parent 1b9b84d commit 4a64599
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 2,237 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ script:
- yarn coveralls
- yarn test:flow
after_success:
- yarn global add semantic-release@^15
- semantic-release
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
"ts-jest": "^22.4.6",
"typescript": "2.8.1",
"uglify-es": "^3.3.6",
"yarn-or-npm": "^2.0.4",
"semantic-release": "^15.12.5"
"yarn-or-npm": "^2.0.4"
},
"jest": {
"testURL": "http://localhost",
Expand Down
Loading

0 comments on commit 4a64599

Please sign in to comment.