From 1c97ba26b2016573861d65372ea3b9c6acb87758 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Wed, 25 Jan 2017 10:20:34 -0800 Subject: [PATCH] chore: semantic-release --- .travis.yml | 16 ++++++++++++---- package.json | 10 ++++++---- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 151e1459..009b90a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,17 @@ language: node_js +cache: + directories: + - node_modules +notifications: + email: false node_js: - '6' - '5' - '4' - - '0.12' - - '0.10' -before_install: - - 'npm install -g npm@latest' +script: + - npm test +after_success: + - npm run semantic-release +branches: + only: + - master diff --git a/package.json b/package.json index 5c2db699..ac4d53b3 100644 --- a/package.json +++ b/package.json @@ -1,16 +1,17 @@ { "name": "all-contributors-cli", - "version": "3.0.7", + "version": "0.0.0-semantically-released", "description": "Tool to easily add recognition for new contributors", "bin": { "all-contributors": "cli.js" }, "scripts": { - "test": "xo && nyc ava" + "test": "xo && nyc ava", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "repository": { "type": "git", - "url": "git+https://github.com/jfmengels/all-contributors-cli.git" + "url": "https://github.com/jfmengels/all-contributors-cli.git" }, "keywords": [ "all-contributors", @@ -33,7 +34,8 @@ "ava": "^0.14.0", "nock": "^8.0.0", "nyc": "^6.4.2", - "xo": "^0.15.0" + "xo": "^0.15.0", + "semantic-release": "^6.3.2" }, "ava": { "files": [