Skip to content

Commit

Permalink
build: setup semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kirkpatrick committed Nov 23, 2016
1 parent 06fc57b commit 6b5525d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
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
14 changes: 12 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "loopback-component-mq",
"version": "1.2.3",
"version": "0.0.0-development",
"description": "Loopback Component for working with a Message Queue",
"homepage": "https://github.com/fullcube/loopback-component-mq",
"author": {
Expand All @@ -23,7 +23,8 @@
"lint": "eslint .",
"pretest": "npm run lint",
"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"
},
"license": "MIT",
"dependencies": {
Expand All @@ -38,6 +39,7 @@
"devDependencies": {
"chai": "^3.5.0",
"compression": "^1.0.3",
"condition-circle": "^1.5.0",
"cors": "^2.5.2",
"coveralls": "^2.11.9",
"eslint": "2.13.1",
Expand All @@ -50,6 +52,7 @@
"mocha": "^3.1.2",
"nodemon": "^1.11.0",
"nyc": "^8.3.1",
"semantic-release": "^6.3.2",
"serve-favicon": "^2.0.1",
"sinon": "^1.17.4",
"sinon-as-promised": "^4.0.2",
Expand All @@ -60,5 +63,12 @@
"env": {
"mocha": true
}
},
"repository": {
"type": "git",
"url": "https://github.com/fullcube/loopback-component-mq.git"
},
"release": {
"verifyConditions": "condition-circle"
}
}

0 comments on commit 6b5525d

Please sign in to comment.