From e324cef9d6fca540778e24aaeace482a6a04cce1 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Thu, 4 May 2017 12:23:48 +0200 Subject: [PATCH] build: ensure all conventional commit types trigger a new release --- package.json | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c7b90f1..fc3bf73 100644 --- a/package.json +++ b/package.json @@ -40,8 +40,10 @@ "depd": "^1.1.0" }, "devDependencies": { + "@bubltechnology/customizable-commit-analyzer": "^1.0.2-0", "chai": "^3.5.0", "condition-circle": "^1.5.0", + "conventional-commit-types": "^2.1.0", "coveralls": "^2.13.0", "dirty-chai": "^1.2.2", "eslint-config-fullcube": "^2.0.0", @@ -55,7 +57,26 @@ "semantic-release": "^6.3.2", "supertest": "^3.0.0" }, + "config": { + "commitTypeMap": { + "feat": "minor", + "fix": "patch", + "docs": "patch", + "style": "patch", + "refactor": "patch", + "perf": "patch", + "test": "patch", + "build": "patch", + "ci": "patch", + "chore": "patch", + "revert": "patch" + }, + "validate-commit-msg": { + "types": "conventional-commit-types" + } + }, "release": { - "verifyConditions": "condition-circle" + "verifyConditions": "condition-circle", + "analyzeCommits": "@bubltechnology/customizable-commit-analyzer" } }