From b3655c438f42e01443e522cd249b5ddf7aa13bfc Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Tue, 20 Feb 2018 12:48:09 -0800 Subject: [PATCH] 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 --- .travis.yml | 7 +++++-- package.json | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c7de340..50a95e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/package.json b/package.json index d6a6f1b..5720770 100644 --- a/package.json +++ b/package.json @@ -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": {