diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 000000000..3feef6052 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,31 @@ +name: 🚀 Adding the commit to the next release +permissions: + contents: read + pull-requests: write +on: + push: + branches: + - main +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - id: release + uses: googleapis/release-please-action@v4.1.4 + with: + # We can't use GITHUB_TOKEN here because, github actions can't trigger actions + # see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow + # So this is a personal access token + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} + release-type: simple + pull-request-title-pattern: "chore: 🚀 changelog for Open Food Facts Explorer - Experimental frontend" + changelog-types: | + [ + {"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"taxonomy","section":"Taxonomy","hidden":false}, + {"type":"l10n","section":"Translations","hidden":false}, + {"type":"style","section":"Technical","hidden":false}, + {"type":"docs","section":"Technical","hidden":false}, + {"type":"test","section":"Technical","hidden":false} + ]