Skip to content

Commit

Permalink
chore: update semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Jan 14, 2018
1 parent f552c05 commit 4c47baf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
language: node_js

node_js:
- 9
- 8
- 6
- 4

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

install:
- travis_retry npm install

script:
- npm run test
env:
- BUILD_LEADER_ID=4

after_success:
- npm run codecov

jobs:
include:
- stage: release
node_js: 8
script: npm run test
after_success:
- if [ -n "${CODECOV_TOKEN:-}" ]; then npm run codecov; fi
- npm run coverage
- npm run semantic-release
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 @@ -6,7 +6,6 @@
[![npm](https://img.shields.io/npm/dt/@metahub/cz-conventional-commit.svg)](https://www.npmjs.com/package/@metahub/cz-conventional-commit)
[![Greenkeeper badge](https://badges.greenkeeper.io/vanduynslagerp/cz-conventional-commit.svg)](https://greenkeeper.io/)
[![license](https://img.shields.io/github/license/vanduynslagerp/cz-conventional-commit.svg)](https://github.com/vanduynslagerp/cz-conventional-commit/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/cz-conventional-commit.svg)](https://travis-ci.org/vanduynslagerp/cz-conventional-commit)
[![Codecov](https://img.shields.io/codecov/c/github/vanduynslagerp/cz-conventional-commit.svg)](https://codecov.io/gh/vanduynslagerp/cz-conventional-commit)
Expand Down
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
"nyc": "^11.1.0",
"prettier": "^1.7.2",
"rimraf": "^2.6.1",
"semantic-release": "^8.0.0",
"semantic-release": "^12.0.0",
"sinon": "^4.0.0",
"sr-commit-analyzer": "^2.0.1",
"sr-release-notes-generator": "^1.1.1",
"stringz": "^0.4.0"
},
"engines": {
Expand Down Expand Up @@ -81,12 +79,10 @@
},
"release": {
"analyzeCommits": {
"path": "sr-commit-analyzer",
"preset": "metahub",
"releaseRules": "conventional-changelog-metahub/release-rules"
},
"generateNotes": {
"path": "sr-release-notes-generator",
"preset": "metahub"
}
},
Expand All @@ -102,7 +98,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 && npm publish && semantic-release post",
"semantic-release": "semantic-release",
"test": "nyc ava -vv"
}
}

0 comments on commit 4c47baf

Please sign in to comment.