From 536f16675f129f8007e4ee772dd49f057b10a4c4 Mon Sep 17 00:00:00 2001 From: "Johannes J. Schmidt" Date: Mon, 28 Sep 2015 17:05:36 +0200 Subject: [PATCH] feat: setup semantic release --- .travis.yml | 20 ++++++++++++++++++-- package.json | 9 +++++---- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 18ae2d8..05b01e1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,20 @@ +sudo: false language: node_js +cache: + directories: + - node_modules +notifications: + email: false node_js: - - "0.11" - - "0.10" + - 4 + - iojs-v3 + - iojs-v2 + - iojs-v1 + - '0.12' + - '0.10' +before_install: + - npm i -g npm@^2.0.0 +before_script: + - npm prune +after_success: + - npm run semantic-release diff --git a/package.json b/package.json index 94d8700..f2b749a 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,14 @@ { "name": "docuri", - "version": "4.1.1", "description": "Rich document ids for CouchDB", "main": "index.js", "scripts": { - "test": "tap test/*.js" + "test": "tap test/*.js", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "repository": { "type": "git", - "url": "git://github.com/jo/docuri.git" + "url": "https://github.com/jo/docuri.git" }, "keywords": [ "couchdb" @@ -21,6 +21,7 @@ "homepage": "https://github.com/jo/docuri", "devDependencies": { "shuffle-array": "^0.1.0", - "tap": "^0.4.8" + "tap": "^0.4.8", + "semantic-release": "^4.3.5" } }