From 50e77907b482997c635ec8171f36f783b2d5f80e Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Wed, 24 Aug 2016 11:25:43 +0100 Subject: [PATCH] chore: add semantic release --- .travis.yml | 5 +++++ package.json | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 68c6d529e..09ff4a8bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,3 +11,8 @@ node_js: before_script: - npm run es5ify - npm prune +after_success: + - npm run semantic-release +branches: + except: + - /^v\d+\.\d+\.\d+$/ diff --git a/package.json b/package.json index a88744d3c..a4039bed9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "snyk-broker", "description": "Broker for private communication between internal systems and outside public systems", - "version": "1.0.0", "main": "lib/index.js", "bin": { "snyk-broker": "./cli/index.js", @@ -16,7 +15,8 @@ "test": "tap -R spec test/**/*.test.js --timeout 60", "lint": "eslint cli/*.js lib/**/*.js", "check-tests": "! grep 'test.only' test/**/*.test.js -n", - "cover": "tap test/**/*.test.js --timeout 60 --cov --coverage-report=lcov" + "cover": "tap test/**/*.test.js --timeout 60 --cov --coverage-report=lcov", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "keywords": [], "author": "Remy Sharp", @@ -32,7 +32,8 @@ "babel-preset-stage-3": "^6.11.0", "eslint": "^3.3.1", "tap": "^6.3.0", - "tap-only": "0.0.5" + "tap-only": "0.0.5", + "semantic-release": "^4.3.5" }, "dependencies": { "babel-runtime": "^6.11.6", @@ -54,7 +55,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/Snyk/broker.git" + "url": "https://github.com/Snyk/broker.git" }, "bugs": { "url": "https://github.com/Snyk/broker/issues"