Skip to content

Commit

Permalink
fix: Fix semantic-release deploys
Browse files Browse the repository at this point in the history
Updated .travis.yml to match the example provided in the documentation
https://semantic-release.gitbooks.io/semantic-release/content/docs/recipes/travis.html
  • Loading branch information
colebemis committed Feb 20, 2018
1 parent 5a8a8b7 commit b3655c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ before_script:
- npm prune
script:
- npm start
after_success:
- npm run semantic-release
deploy:
provider: script
skip_cleanup: true
script:
- npx semantic-release
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"test": "jest",
"cm": "git-cz",
"precommit": "lint-staged",
"commitmsg": "commitlint --edit",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"commitmsg": "commitlint --edit"
},
"config": {
"commitizen": {
Expand Down

0 comments on commit b3655c4

Please sign in to comment.