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" } }