Skip to content

Commit

Permalink
Merge pull request #41 from dadi/feature/add-semantic-release
Browse files Browse the repository at this point in the history
feat: add semantic release
  • Loading branch information
jimlambie authored Jan 20, 2017
2 parents 4197e94 + 8eeaf7d commit 9808477
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
18 changes: 15 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- "4"
- "5"
- "6"
- '6'
- '5'
- '4'
before_script:
- npm prune
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
before_install:
- if [[ `npm -v` != 3* ]]; then npm i -g npm@latest; fi
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![coverage](https://img.shields.io/badge/coverage-72%25-yellow.svg?style=flat-square)](https://github.com/dadi/logger)
[![Build Status](https://travis-ci.org/dadi/logger.svg?branch=master)](https://travis-ci.org/dadi/logger)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)

## Overview

Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "@dadi/logger",
"version": "1.1.5",
"version": "0.0.0-development",
"description": "DADI Logger",
"main": "dadi/index.js",
"scripts": {
"test": "standard 'dadi/index.js' && ./node_modules/.bin/istanbul cover --report cobertura --report text --report html --report lcov ./node_modules/.bin/_mocha test",
"posttest": "./scripts/coverage.js",
"postpublish": "greenkeeper-postpublish"
"postpublish": "greenkeeper-postpublish",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"dependencies": {
"aws-kinesis-writable": "^2.0.0",
Expand All @@ -19,7 +20,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/dadi/logger.git"
"url": "https://github.com/dadi/logger.git"
},
"bugs": {
"url": "https://github.com/dadi/logger/issues"
Expand All @@ -34,6 +35,7 @@
"istanbul-cobertura-badger": "^1.2.1",
"jasmine": "^2.5.2",
"mocha": "^3.2.0",
"standard": "^8.6.0"
"standard": "^8.6.0",
"semantic-release": "^6.3.2"
}
}

0 comments on commit 9808477

Please sign in to comment.