ci: improve release-please

Add sentence-case plugin and move a few parameters from the command
line to the configuration.

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
This commit is contained in:
Francesco Canovai 2024-12-12 10:16:14 +01:00
parent 242b25a1ce
commit 750e27b95c
No known key found for this signature in database
GPG Key ID: C3867DCF133BFEB6
2 changed files with 5 additions and 5 deletions

View File

@ -48,10 +48,7 @@ jobs:
run: |
npx release-please release-pr \
--token="${{ secrets.REPO_PAT }}" \
--repo-url="${{ github.repository }}" \
--bump-minor-pre-major=true \
--release-as=0.1.0 \
--signoff "Peggie <info@cloudnative-pg.io>";
--repo-url="${{ github.repository }}"
npx release-please github-release \
--token="${{ secrets.REPO_PAT }}" \
--repo-url="${{ github.repository }}"

View File

@ -1,12 +1,15 @@
{
"changelog-path": "CHANGELOG.md",
"release-type": "go",
"bump-minor-pre-major": false,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false,
"packages": {
".": {}
},
"plugins": [ "sentence-case" ],
"release-as": "0.1.0",
"signoff": "Peggie <info@cloudnative-pg.io>",
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}