From cf66da0a5ee3adf5a4dd60d393d4f0c53fb6a6aa Mon Sep 17 00:00:00 2001 From: Joakim Carlstein Date: Fri, 23 Feb 2018 13:46:24 +0100 Subject: [PATCH] chore: upgrade semantic-release --- .travis.yml | 20 ++++++++++++++------ package.json | 4 ++-- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0fb5504..f122926 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,12 +8,20 @@ node_js: - '8' - '6' - '4' -before_script: - - npm prune -after_success: - - test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" || echo "Not master" && exit 0 - - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc - - npm run semantic-release +env: + - BUILD_LEADER_ID=4 branches: except: - /^v\d+\.\d+\.\d+$/ +before_script: + - npm prune +jobs: + include: + - stage: release + node_js: 8 + os: linux + after_success: + - test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" + - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc + - npm run semantic-release + diff --git a/package.json b/package.json index 3f669b7..77e2920 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "lint": "xo", "pretest": "npm run -s lint", "test": "mocha -R spec src/**/*_test.js", - "semantic-release": "semantic-release pre && npm publish && semantic-release post", + "semantic-release": "semantic-release", "commitmsg": "commitlint -e" }, "dependencies": { @@ -43,7 +43,7 @@ "@commitlint/config-angular": "^3.1.1", "husky": "^0.14.3", "mocha": "~2.0.1", - "semantic-release": "^7.0.2", + "semantic-release": "^12.4.1", "should": "^4.0.4", "strip-color": "^0.1.0", "xo": "^0.13.0"