Skip to content

Commit e49f950

Browse files
author
Tom Kirkpatrick
committed
build: enable semantic-release
1 parent ad7e8a6 commit e49f950

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

circle.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
machine:
22
node:
33
version: 6.1.0
4+
45
test:
56
post:
67
- npm run coverage
8+
9+
deployment:
10+
master:
11+
branch: [master]
12+
commands:
13+
- npm run semantic-release

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "loopback-component-fsm",
33
"description": "Finite State Machine for Loopback Models.",
4-
"version": "0.1.0",
4+
"version": "0.0.0-development",
55
"author": {
66
"name": "Tom Kirkpatrick @mrfelton"
77
},
@@ -34,11 +34,13 @@
3434
"pretest": "npm run lint",
3535
"test": "nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js",
3636
"test:watch": "npm run test -- -w",
37-
"coverage": "nyc report --reporter=text-lcov | coveralls"
37+
"coverage": "nyc report --reporter=text-lcov | coveralls",
38+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
3839
},
3940
"devDependencies": {
4041
"chai": "^3.5.0",
4142
"compression": "^1.0.3",
43+
"condition-circle": "1.5.0",
4244
"cors": "^2.5.2",
4345
"coveralls": "^2.11.9",
4446
"eslint": "^2.13.1",
@@ -58,12 +60,16 @@
5860
"serve-favicon": "^2.0.1",
5961
"sinon": "^1.17.4",
6062
"sinon-as-promised": "^3.0.1",
61-
"sinon-chai": "^2.8.0"
63+
"sinon-chai": "^2.8.0",
64+
"semantic-release": "^6.3.2"
6265
},
6366
"dependencies": {
6467
"bluebird": "^3.4.1",
6568
"debug": "^2.2.0",
6669
"fsm-as-promised": "^0.13.0",
6770
"lodash": "^4.13.1"
71+
},
72+
"release": {
73+
"verifyConditions": "condition-circle"
6874
}
6975
}

0 commit comments

Comments
 (0)