From 87ce8b9c86318fac3ca6341a9fb658c7b5a2a685 Mon Sep 17 00:00:00 2001 From: Alexis Couvreur Date: Sun, 9 Nov 2025 17:31:20 -0500 Subject: [PATCH] ci: add release-please --- .../.release-please-manifest.json | 3 ++ .../release-please/release-please-config.json | 46 +++++++++++++++++++ .github/workflows/release-please.yml | 36 +++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 .github/release-please/.release-please-manifest.json create mode 100644 .github/release-please/release-please-config.json create mode 100644 .github/workflows/release-please.yml diff --git a/.github/release-please/.release-please-manifest.json b/.github/release-please/.release-please-manifest.json new file mode 100644 index 0000000..cf9bf86 --- /dev/null +++ b/.github/release-please/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "1.10.1" +} \ No newline at end of file diff --git a/.github/release-please/release-please-config.json b/.github/release-please/release-please-config.json new file mode 100644 index 0000000..dfab9bd --- /dev/null +++ b/.github/release-please/release-please-config.json @@ -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" + ] + } + } +} \ No newline at end of file diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..c7f0454 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -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 \ No newline at end of file