Skip to content

Commit

Permalink
ci: update semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Jan 13, 2018
1 parent 5417afb commit d9fd3cb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
18 changes: 11 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
language: node_js

node_js:
- 9
- 8
- 6
- 4

branches:
only:
- master
- /^greenkeeper.*$/
before_install:
- if [[ `npm -v` < 5* ]]; then npm install -g npm@5; fi

install:
- travis_retry npm install

script:
- npm run test

after_success:
- npm run codecov

jobs:
include:
- stage: release
node_js: node
script: npm run test
after_success:
- npm run codecov
- npm run coverage
node_js: lts/*
script:
- npm run semantic-release
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Also provides [release rules](https://github.com/vanduynslagerp/sr-commit-analyz
[![npm](https://img.shields.io/npm/dt/conventional-changelog-metahub.svg)](https://www.npmjs.com/package/conventional-changelog-metahub)
[![Greenkeeper badge](https://badges.greenkeeper.io/vanduynslagerp/conventional-changelog-metahub.svg)](https://greenkeeper.io/)
[![license](https://img.shields.io/github/license/vanduynslagerp/conventional-changelog-metahub.svg)](https://github.com/vanduynslagerp/conventional-changelog-metahub/blob/master/LICENSE)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

[![Travis](https://img.shields.io/travis/vanduynslagerp/conventional-changelog-metahub.svg)](https://travis-ci.org/vanduynslagerp/conventional-changelog-metahub)
[![Codecov](https://img.shields.io/codecov/c/github/vanduynslagerp/conventional-changelog-metahub.svg)](https://codecov.io/gh/vanduynslagerp/conventional-changelog-metahub)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"prettier": "^1.7.2",
"proxyquire": "^1.8.0",
"rimraf": "^2.6.1",
"semantic-release": "^11.0.2",
"semantic-release": "^12.0.0",
"stringz": "^0.4.0",
"tempy": "^0.2.0"
},
Expand Down Expand Up @@ -109,7 +109,7 @@
"lint": "eslint src test package.json",
"prepublishOnly": "npm run compile",
"pretest": "npm run clean && npm run compile && npm run lint",
"semantic-release": "semantic-release pre",
"semantic-release": "semantic-release",
"test": "nyc ava -v"
}
}

0 comments on commit d9fd3cb

Please sign in to comment.