ci(release): setup release-please for managing releases and changelog (#4)

This commit is contained in:
2025-02-28 00:24:59 +00:00
committed by GitHub
parent 1b0bb32a3e
commit 8da5e1ef80
3 changed files with 30 additions and 0 deletions

3
.github/.release-please-manifest.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
".": "0.3.0"
}

14
.github/release-please-config.json vendored Normal file
View File

@@ -0,0 +1,14 @@
{
"bootstrap-sha": "660fc4d179bfe22826230988407fff810e3b8568",
"packages": {
".": {
"release-type": "go",
"changelog-path": "CHANGELOG.md",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"draft": false,
"prerelease": false
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

View File

@@ -137,3 +137,16 @@ jobs:
github-token: ${{ secrets.GH_PUSH_TOKEN }}
comment-on-alert: true
auto-push: true
release-please:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
version: ${{ steps.release-please.outputs.version }}
steps:
- uses: jimeh/release-please-manifest-action@v1
id: release-please
with:
app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}