Skip to content

Commit 53e61dc

Browse files
author
Tom Kirkpatrick
committed
ci: setup semantic-release
1 parent a2317e0 commit 53e61dc

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

circle.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
machine:
22
node:
3-
version: 4.2.2
3+
version: 6.1.0
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: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "loopback-component-access-groups",
33
"description": "Access controls for Loopback.",
4-
"version": "0.2.0",
4+
"version": "0.0.0-development",
55
"author": {
66
"name": "Tom Kirkpatrick @mrfelton"
77
},
@@ -29,7 +29,8 @@
2929
"test": "NODE_ENV=test nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js",
3030
"pretest": "npm run lint",
3131
"coverage": "nyc report --reporter=text-lcov | coveralls",
32-
"simple-app": "node test/fixtures/simple-app/server/server.js"
32+
"simple-app": "DEBUG=loopback:component:access* node test/fixtures/simple-app/server/server.js",
33+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
3334
},
3435
"dependencies": {
3536
"bluebird": "3.2.1",
@@ -43,8 +44,10 @@
4344
"loopback-component-explorer": "2.3.0"
4445
},
4546
"devDependencies": {
47+
"@bubltechnology/customizable-commit-analyzer": "^1.0.2-0",
4648
"chai": "3.5.0",
4749
"chai-tbd": "0.1.0",
50+
"condition-circle": "^1.5.0",
4851
"coveralls": "latest",
4952
"dirty-chai": "1.2.2",
5053
"eslint": "^2.13.1",
@@ -60,7 +63,27 @@
6063
"nyc": "latest",
6164
"sinon": "latest",
6265
"sinon-chai": "latest",
63-
"supertest": "1.1.0",
64-
"supertest-as-promised": "2.0.2"
66+
"strong-error-handler": "^2.1.0",
67+
"supertest": "^3.0.0",
68+
"semantic-release": "^6.3.6"
69+
},
70+
"config": {
71+
"commitTypeMap": {
72+
"feat": "minor",
73+
"fix": "patch",
74+
"docs": "patch",
75+
"style": "patch",
76+
"refactor": "patch",
77+
"perf": "patch",
78+
"test": "patch",
79+
"build": "patch",
80+
"ci": "patch",
81+
"chore": "patch",
82+
"revert": "patch"
83+
}
84+
},
85+
"release": {
86+
"verifyConditions": "condition-circle",
87+
"analyzeCommits": "@bubltechnology/customizable-commit-analyzer"
6588
}
6689
}

0 commit comments

Comments
 (0)