From 7e4264ced84ffdf835969f21738a3387250a501c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ole=C5=9B?= Date: Mon, 22 Apr 2019 11:16:07 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A7=20add=20`all=5Fbranches:?= =?UTF-8?q?=20true`=20to=20the=20deploy=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit semantic-release is responsible for checking whether package should be deployed on the current branch or not. By setting `all_branches: true` in the deploy job, we move this responsibility away from Travis CI. --- .travis.yml | 2 ++ package.json | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0296aa20..66c55e1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,3 +33,5 @@ jobs: skip_cleanup: true script: - yarn exec semantic-release + on: + all_branches: true diff --git a/package.json b/package.json index 494a9836..7348e871 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,7 @@ "test:watch": "mocha -R spec --watch ./test/unit", "watch": "tsc --version && tsc --project \"./src\" --watch", "precommit": "lint-staged && yarn build", - "commit": "./node_modules/.bin/git-cz", - "semantic-release": "semantic-release" + "commit": "./node_modules/.bin/git-cz" }, "husky": { "hooks": {