From b37d855d0ae644a6d53688e00171250e1f5f9126 Mon Sep 17 00:00:00 2001 From: Victor Fernandez de Alba Date: Fri, 1 Dec 2023 11:03:29 +0100 Subject: [PATCH] Better config in generator package.json tooling --- packages/generator-volto/.release-it.json | 19 +++++++++++++++++++ packages/generator-volto/package.json | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 packages/generator-volto/.release-it.json diff --git a/packages/generator-volto/.release-it.json b/packages/generator-volto/.release-it.json new file mode 100644 index 0000000000..9921553ef6 --- /dev/null +++ b/packages/generator-volto/.release-it.json @@ -0,0 +1,19 @@ +{ + "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" + }, + "git": { + "changelog": "pipx run towncrier build --draft --yes --version 0.0.0", + "requireUpstream": false, + "requireCleanWorkingDir": false, + "commitMessage": "Release generate-volto ${version}", + "tagName": "generator-volto-${version}", + "tagAnnotation": "Release generator-volto ${version}" + }, + "github": { + "release": true, + "releaseName": "@plone/generator-volto ${version}", + "releaseNotes": "cat .changelog.draft" + } +} diff --git a/packages/generator-volto/package.json b/packages/generator-volto/package.json index 030cdfb262..56af3b81cd 100644 --- a/packages/generator-volto/package.json +++ b/packages/generator-volto/package.json @@ -58,25 +58,6 @@ "trailingComma": "all", "singleQuote": true }, - "release-it": { - "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" - }, - "git": { - "changelog": "pipx run towncrier build --draft --yes --version 0.0.0", - "requireUpstream": false, - "requireCleanWorkingDir": false, - "commitMessage": "Release generate-volto ${version}", - "tagName": "generator-volto-${version}", - "tagAnnotation": "Release generator-volto ${version}" - }, - "github": { - "release": true, - "releaseName": "@plone/generator-volto ${version}", - "releaseNotes": "cat .changelog.draft" - } - }, "jest": { "testEnvironment": "node" },