From 2eb39f692e216c705b038a18e45ef96342b7b6d0 Mon Sep 17 00:00:00 2001 From: Jochen Hinrichsen Date: Mon, 4 Jan 2016 02:47:56 +0100 Subject: [PATCH] chore: Start using semantic releases --- .travis.yml | 18 ++++++++++++++++-- package.json | 9 ++++++--- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3b8b254..a1ace24 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,18 @@ +sudo: false language: node_js +cache: + directories: + - node_modules +notifications: + email: false node_js: - - "stable" - + - '4' +before_install: + - npm i -g npm@^2.0.0 +before_script: + - npm prune +after_success: + - npm run semantic-release +branches: + except: + - "/^v\\d+\\.\\d+\\.\\d+$/" diff --git a/package.json b/package.json index a0ff6de..ccd2a7a 100644 --- a/package.json +++ b/package.json @@ -1,15 +1,15 @@ { "name": "sense-hat-matrix", - "version": "0.1.0", "description": "Vanilla ES2015 support for Raspberry Pi Sense HAT LED Matrix", "main": "index.js", "scripts": { "lint": "jshint index.js", - "test": "exit 0" + "test": "exit 0", + "semantic-release": "semantic-release pre && npm publish && semantic-release post" }, "repository": { "type": "git", - "url": "git+https://github.com/jhinrichsen/sense-hat-matrix.git" + "url": "https://github.com/jhinrichsen/sense-hat-matrix.git" }, "keywords": [ "raspberry", @@ -28,5 +28,8 @@ "fs-promise": "^0.3.1", "glob-promise": "^1.0.4", "streamjs": "^1.6.4" + }, + "devDependencies": { + "semantic-release": "^4.3.5" } }