From 95e288072521648300105a8df81cb4d66d96477e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Cabrera?= Date: Thu, 13 Apr 2023 22:20:01 +0100 Subject: [PATCH] ci: change to releaserc --- .releaserc.json | 27 +++++++++++++++++++++ package.json | 62 +++++++++++++++++++------------------------------ 2 files changed, 51 insertions(+), 38 deletions(-) create mode 100644 .releaserc.json diff --git a/.releaserc.json b/.releaserc.json new file mode 100644 index 0000000..ad80d7e --- /dev/null +++ b/.releaserc.json @@ -0,0 +1,27 @@ +{ + "branches": [ + "12", + "master" + ], + "debug": true, + "fail": { "@semantic-release/github" }, + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "angular", + "releaseRules": [ + {"type": "docs", "scope": "README", "release": "patch"}, + {"type": "refactor", "release": "patch"}, + {"type": "style", "release": "patch"}, + {"type": "build", "release": "patch"} + ] + } + ], + "@semantic-release/github" + ], + "publish": { "@semantic-release/github" }, + "repositoryUrl": "https://github.com/rubencabrera/odoo-addons.git", + "tagFormat": "${version}", + "verifyConditions": { "@semantic-release/github" } +} diff --git a/package.json b/package.json index befae9c..ad80d7e 100644 --- a/package.json +++ b/package.json @@ -1,41 +1,27 @@ { - "name": "odoo-addons", - "description": "Odoo extra addons", - "scripts": { - "semantic-release": "semantic-release" - }, - "devDependencies": { - "semantic-release": "19.0.3", - "@semantic-release/commit-analyzer": "8.0.1", - "@semantic-release/git": "9.0.0" - }, - "release": { - "branches": [ - "12", - "master" + "branches": [ + "12", + "master" + ], + "debug": true, + "fail": { "@semantic-release/github" }, + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "angular", + "releaseRules": [ + {"type": "docs", "scope": "README", "release": "patch"}, + {"type": "refactor", "release": "patch"}, + {"type": "style", "release": "patch"}, + {"type": "build", "release": "patch"} + ] + } ], - "debug": true, - "repositoryUrl": "https://github.com/rubencabrera/odoo-addons.git", - "tagFormat": "${version}", - "plugins": [ - [ - "@semantic-release/commit-analyzer", - { - "preset": "angular", - "releaseRules": [ - {"type": "docs", "scope": "README", "release": "patch"}, - {"type": "refactor", "release": "patch"}, - {"type": "style", "release": "patch"}, - {"type": "build", "release": "patch"} - ] - } - ], - "@semantic-release/git" - ] - }, - "keywords": [ - "odoo" - ], - "author": "Rubén Cabrera Martínez", - "license": "LGPL-3.0" + "@semantic-release/github" + ], + "publish": { "@semantic-release/github" }, + "repositoryUrl": "https://github.com/rubencabrera/odoo-addons.git", + "tagFormat": "${version}", + "verifyConditions": { "@semantic-release/github" } }