Skip to content

Commit

Permalink
chore: upgrade semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
joakimbeng committed Feb 23, 2018
1 parent 390979d commit cf66da0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
20 changes: 14 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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"
Expand Down

0 comments on commit cf66da0

Please sign in to comment.