From 4a95c0de5ce912caef449b250c0411a353e0b8f2 Mon Sep 17 00:00:00 2001 From: Duncan Bay Date: Fri, 4 May 2018 12:29:46 +1000 Subject: [PATCH] build: enable semantic release --- .travis.yml | 8 ++++---- package.json | 8 ++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4fafc45..7b76986 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,10 +13,10 @@ script: npm start validate after_success: npx codecov -# deploy: -# provider: script -# skip_cleanup: true -# script: npx semantic-release +deploy: + provider: script + skip_cleanup: true + script: npx semantic-release branches: except: /^v\d+\.\d+\.\d+$/ diff --git a/package.json b/package.json index 9379039..f5742f1 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "scripts": { "start": "nps --no-scripts", "precommit": "lint-staged", - "test": "nps test" + "test": "nps test", + "travis-deploy-once": "travis-deploy-once", + "semantic-release": "semantic-release" }, "main": "dist/index.js", "files": [ @@ -64,7 +66,9 @@ "styled-components": "3.2.6", "webpack": "4.6.0", "webpack-cli": "2.1.2", - "webpack-dev-server": "3.1.4" + "webpack-dev-server": "3.1.4", + "travis-deploy-once": "^5.0.0", + "semantic-release": "^15.2.0" }, "config": { "commitizen": {