From 2faf12745536fe07005ad2773667d8961de7beb0 Mon Sep 17 00:00:00 2001 From: Mikel Larreategi Date: Sun, 31 Mar 2024 17:11:24 +0200 Subject: [PATCH] use towncrier --- .release-it.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.release-it.json b/.release-it.json index eec2cb5..d29d3b4 100644 --- a/.release-it.json +++ b/.release-it.json @@ -1,5 +1,23 @@ { "npm": { "publish": true + }, + "git": { + "changelog": "pipx run towncrier build --draft --yes --version 0.0.0", + "requireUpstream": false, + "requireCleanWorkingDir": false, + "commitMessage": "Release ${version}", + "tagName": "${version}", + "tagAnnotation": "Release ${version}" + }, + "github": { + "release": true, + "releaseName": "${version}", + "releaseNotes": "cat .changelog.draft" + }, + + "hooks": { + "after:bump": "pipx run towncrier build --draft --yes --version ${version} > .changelog.draft && pipx run towncrier build --yes --version ${version}", + "after:release": "rm .changelog.draft" } }