From d3f43b113f515a0462fc77b5f52c14fe7d12caa7 Mon Sep 17 00:00:00 2001 From: Ben Evans Date: Tue, 2 Jan 2018 23:52:18 +0000 Subject: [PATCH 1/2] chore: semantic release --- .travis.yml | 24 ++++++++++++++---------- package.json | 10 ++++++---- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index ef7c335..4ab380b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,16 @@ language: node_js +cache: + directories: + - ~/.npm +notifications: + email: false node_js: - - 6 - - 8 - - 9 -sudo: false -matrix: - fast_finish: true -env: - - CMD=lint - - CMD=test -script: npm run env-run + - '9' + - '8' + - '6' +after_success: + - npm install -g travis-deploy-once@4 + - travis-deploy-once "npm run semantic-release" +branches: + except: + - /^v\d+\.\d+\.\d+$/ diff --git a/package.json b/package.json index 0a7e000..7c07024 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "sonos", - "version": "0.19.0", + "version": "0.0.0-development", "description": "Node.js Sonos Interface", "main": "index.js", "scripts": { "lint": "standard", - "test": "mocha test/sonos.test.js", + "test": "npm run lint && mocha test/sonos.test.js", "test-onsite": "mocha test/", - "env-run": "npm run $CMD" + "env-run": "npm run $CMD", + "semantic-release": "semantic-release" }, "repository": { "type": "git", @@ -46,6 +47,7 @@ }, "devDependencies": { "mocha": "^4.1.0", - "standard": "*" + "standard": "*", + "semantic-release": "^11.0.2" } } From bd965bdcc85e6d8cd9eafff29da91c3c0b7d8184 Mon Sep 17 00:00:00 2001 From: Stephan van Rooij Date: Wed, 3 Jan 2018 12:17:41 +0100 Subject: [PATCH 2/2] chore: Fix travis publish --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4ab380b..ab9d5a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,7 @@ node_js: - '8' - '6' after_success: - - npm install -g travis-deploy-once@4 - - travis-deploy-once "npm run semantic-release" + - npm run semantic-release branches: except: - /^v\d+\.\d+\.\d+$/