Skip to content

Commit 6b5525d

Browse files
author
Tom Kirkpatrick
committed
build: setup semantic-release
1 parent 06fc57b commit 6b5525d

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

circle.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ machine:
44
test:
55
post:
66
- npm run coverage
7+
deployment:
8+
master:
9+
branch: [master]
10+
commands:
11+
- npm run semantic-release

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loopback-component-mq",
3-
"version": "1.2.3",
3+
"version": "0.0.0-development",
44
"description": "Loopback Component for working with a Message Queue",
55
"homepage": "https://github.com/fullcube/loopback-component-mq",
66
"author": {
@@ -23,7 +23,8 @@
2323
"lint": "eslint .",
2424
"pretest": "npm run lint",
2525
"test:watch": "npm run test -- -w",
26-
"coverage": "nyc report --reporter=text-lcov | coveralls"
26+
"coverage": "nyc report --reporter=text-lcov | coveralls",
27+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
2728
},
2829
"license": "MIT",
2930
"dependencies": {
@@ -38,6 +39,7 @@
3839
"devDependencies": {
3940
"chai": "^3.5.0",
4041
"compression": "^1.0.3",
42+
"condition-circle": "^1.5.0",
4143
"cors": "^2.5.2",
4244
"coveralls": "^2.11.9",
4345
"eslint": "2.13.1",
@@ -50,6 +52,7 @@
5052
"mocha": "^3.1.2",
5153
"nodemon": "^1.11.0",
5254
"nyc": "^8.3.1",
55+
"semantic-release": "^6.3.2",
5356
"serve-favicon": "^2.0.1",
5457
"sinon": "^1.17.4",
5558
"sinon-as-promised": "^4.0.2",
@@ -60,5 +63,12 @@
6063
"env": {
6164
"mocha": true
6265
}
66+
},
67+
"repository": {
68+
"type": "git",
69+
"url": "https://github.com/fullcube/loopback-component-mq.git"
70+
},
71+
"release": {
72+
"verifyConditions": "condition-circle"
6373
}
6474
}

0 commit comments

Comments
 (0)