Skip to content

Commit

Permalink
ci: set up semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kirkpatrick authored and Tom Kirkpatrick committed Apr 26, 2017
1 parent 38d2e87 commit 7b0e450
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
READONLY
=============

[![Circle CI](https://circleci.com/gh/fullcube/loopback-ds-readonly-mixin.svg?style=svg)](https://circleci.com/gh/fullcube/loopback-ds-readonly-mixin) [![Coverage Status](https://coveralls.io/repos/fullcube/loopback-ds-readonly-mixin/badge.svg?branch=master&service=github)](https://coveralls.io/github/fullcube/loopback-ds-readonly-mixin?branch=master) [![Dependencies](http://img.shields.io/david/fullcube/loopback-ds-readonly-mixin.svg?style=flat)](https://david-dm.org/fullcube/loopback-ds-readonly-mixin)
[![Circle CI](https://circleci.com/gh/fullcube/loopback-ds-readonly-mixin.svg?style=svg)](https://circleci.com/gh/fullcube/loopback-ds-readonly-mixin) [![Coverage Status](https://coveralls.io/repos/fullcube/loopback-ds-readonly-mixin/badge.svg?branch=master&service=github)](https://coveralls.io/github/fullcube/loopback-ds-readonly-mixin?branch=master) [![Dependencies](http://img.shields.io/david/fullcube/loopback-ds-readonly-mixin.svg?style=flat)](https://david-dm.org/fullcube/loopback-ds-readonly-mixin) [![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)


This module is designed for the [Strongloop Loopback](https://github.com/strongloop/loopback) framework.
Expand Down
5 changes: 5 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ machine:
test:
post:
- npm run coverage
deployment:
master:
branch: master
commands:
- npm run semantic-release
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "loopback-ds-readonly-mixin",
"description": "A mixin to enable loopback Model properties to be marked as readonly.",
"version": "1.1.0",
"version": "0.0.0-development",
"main": "./lib/index.js",
"author": "Tom Kirkpatrick @mrfelton",
"contributors": [
Expand Down Expand Up @@ -32,14 +32,16 @@
"pretest": "npm run lint",
"test": "NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js",
"test:watch": "npm run test -- -w",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"coverage": "nyc report --reporter=text-lcov | coveralls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"dependencies": {
"debug": "^2.6.4",
"depd": "^1.1.0"
},
"devDependencies": {
"chai": "^3.5.0",
"condition-circle": "^1.5.0",
"coveralls": "^2.13.0",
"dirty-chai": "^1.2.2",
"eslint": "^2.11.1",
Expand All @@ -51,6 +53,10 @@
"mocha": "^3.3.0",
"nodemon": "^1.11.0",
"nyc": "^10.2.0",
"semantic-release": "^6.3.2",
"supertest": "^3.0.0"
},
"release": {
"verifyConditions": "condition-circle"
}
}

0 comments on commit 7b0e450

Please sign in to comment.