ci: add release-please

This commit is contained in:
Alexis Couvreur
2025-11-09 17:31:20 -05:00
parent 6d880928c7
commit 87ce8b9c86
3 changed files with 85 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,46 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/refs/heads/main/schemas/config.json",
"packages": {
".": {
"release-type": "go",
"bump-minor-pre-major": true,
"changelog-sections": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "style",
"section": "Styles"
},
{
"type": "refactor",
"section": "Code Refactoring"
},
{
"type": "test",
"section": "Tests"
},
{
"type": "chore",
"section": "Chores"
}
],
"extra-files": [
"README.md"
]
}
}
}

36
.github/workflows/release-please.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up GitHub App token
id: github-app-token
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
with:
app-id: ${{ secrets.SABLIER_GITHUB_APP_ID }}
private-key: ${{ secrets.SABLIER_GITHUB_APP_PRIVATE_KEY }}
permission-contents: write
permission-issues: write
permission-pull-requests: write
- name: Release Please
uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
with:
token: ${{ steps.github-app-token.outputs.token }}
config-file: .github/release-please/release-please-config.json
manifest-file: .github/release-please/.release-please-manifest.json