From ceb9c3b790b22eb847169108abe253e9aa2b3c44 Mon Sep 17 00:00:00 2001 From: Juri Leino Date: Mon, 22 Apr 2024 18:33:43 +0200 Subject: [PATCH] ci: minor changes to release rules --- .releaserc | 5 ++--- conventionalcommits.config.cjs | 6 +++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.releaserc b/.releaserc index 2cddc75ba..054ab2b0c 100644 --- a/.releaserc +++ b/.releaserc @@ -9,8 +9,7 @@ ] }], ["@semantic-release/release-notes-generator", { - "preset": "conventionalcommits", - "presetConfig": "./conventionalcommits.config.cjs" + "preset": "conventionalcommits" }], ["@semantic-release/exec", { "prepareCmd": "ant -Dapp.version=${nextRelease.version}" @@ -29,4 +28,4 @@ ] }] ] -} \ No newline at end of file +} diff --git a/conventionalcommits.config.cjs b/conventionalcommits.config.cjs index 58ae6ce00..f834edaff 100644 --- a/conventionalcommits.config.cjs +++ b/conventionalcommits.config.cjs @@ -1,3 +1,7 @@ +// Change default header pattern matcher to match headers with no colon. +// This will make the first __word__ in free-form commit message headers the __type__. +// With this non-empty type we can do a negated match (the type being anything but +// one of the other keywords with associated release rules). module.exports = { headerPattern: /^(\w*)(?:\(([\w\$\.\-\* ]*)\))?\:? (.*)$/ -} \ No newline at end of file +}