fix: Fix semantic-release deploys

Updated .travis.yml to match the example provided in the documentation
https://semantic-release.gitbooks.io/semantic-release/content/docs/recipes/travis.html
This commit is contained in:
Cole Bemis
2018-02-20 12:48:09 -08:00
parent 5a8a8b7d93
commit b3655c438f
2 changed files with 6 additions and 4 deletions

View File

@@ -9,5 +9,8 @@ before_script:
- npm prune - npm prune
script: script:
- npm start - npm start
after_success: deploy:
- npm run semantic-release provider: script
skip_cleanup: true
script:
- npx semantic-release

View File

@@ -13,8 +13,7 @@
"test": "jest", "test": "jest",
"cm": "git-cz", "cm": "git-cz",
"precommit": "lint-staged", "precommit": "lint-staged",
"commitmsg": "commitlint --edit", "commitmsg": "commitlint --edit"
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
}, },
"config": { "config": {
"commitizen": { "commitizen": {