Skip to content

Commit 079000a

Browse files
author
Tom Kirkpatrick
committed
ci: setup semantic-release
1 parent b4af4f1 commit 079000a

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-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: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "loopback-component-templates",
33
"description": "Define complex data templates for loopback models",
4-
"version": "1.1.10",
4+
"version": "0.0.0-development",
55
"author": {
66
"name": "Bram Borggreve @beeman"
77
},
@@ -34,10 +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": {
41+
"@bubltechnology/customizable-commit-analyzer": "^1.0.2-0",
4042
"chai": "^4.0.1",
43+
"condition-circle": "^1.5.0",
4144
"compression": "^1.0.3",
4245
"cors": "^2.8.3",
4346
"coveralls": "^2.13.1",
@@ -53,12 +56,32 @@
5356
"mocha": "^3.4.2",
5457
"nodemon": "^1.9.2",
5558
"nyc": "^11.0.1",
59+
"semantic-release": "^6.3.6",
5660
"serve-favicon": "^2.4.3",
5761
"strong-error-handler": "^2.1.0"
5862
},
5963
"dependencies": {
6064
"bluebird": "^3.5.0",
6165
"debug": "^2.6.8",
6266
"lodash": "^4.17.4"
67+
},
68+
"config": {
69+
"commitTypeMap": {
70+
"feat": "minor",
71+
"fix": "patch",
72+
"docs": "patch",
73+
"style": "patch",
74+
"refactor": "patch",
75+
"perf": "patch",
76+
"test": "patch",
77+
"build": "patch",
78+
"ci": "patch",
79+
"chore": "patch",
80+
"revert": "patch"
81+
}
82+
},
83+
"release": {
84+
"verifyConditions": "condition-circle",
85+
"analyzeCommits": "@bubltechnology/customizable-commit-analyzer"
6386
}
6487
}

0 commit comments

Comments
 (0)