From 99e565080925e6e8480d64010e6b77b608df6642 Mon Sep 17 00:00:00 2001 From: Adrien Le Moine Date: Wed, 22 Oct 2025 10:35:55 +0200 Subject: [PATCH] fix(cicd): Upgrade release please --- .github/.release-please-manifest.json | 3 +++ .github/release-please-config.json | 27 +++++++++++++++++++++++++++ .github/workflows/on-push-main.yml | 18 ++++-------------- 3 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 .github/.release-please-manifest.json create mode 100644 .github/release-please-config.json diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json new file mode 100644 index 00000000..8388fe10 --- /dev/null +++ b/.github/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "2.8.0" +} diff --git a/.github/release-please-config.json b/.github/release-please-config.json new file mode 100644 index 00000000..88ec1464 --- /dev/null +++ b/.github/release-please-config.json @@ -0,0 +1,27 @@ +{ + "release-type": "php", + "include-component-in-tag": false, + "packages": { + ".": { + "package-name": "plugin-woocommerce" + } + }, + "extra-files": [ + "lengow.php", + "README.md" + ], + "changelog-sections": [ + { + "type":"feat","section":"Features","hidden":false + }, + { + "type":"fix","section":"Bug Fixes","hidden":false + }, + { + "type":"refactor","section":"Refactoring","hidden":false + }, + { + "type":"misc","section":"Miscellaneous","hidden":false + } + ] +} diff --git a/.github/workflows/on-push-main.yml b/.github/workflows/on-push-main.yml index 560addeb..8932b57f 100644 --- a/.github/workflows/on-push-main.yml +++ b/.github/workflows/on-push-main.yml @@ -46,23 +46,13 @@ jobs: - name: Check out repository uses: actions/checkout@v4 - name: Release please - uses: google-github-actions/release-please-action@v3 + uses: googleapis/release-please-action@v4 id: release-please with: token: ${{ secrets.GITHUB_TOKEN }} - release-type: php - package-name: plugin-woocommerce - default-branch: main - changelog-types: | - [ - {"type":"feat","section":"Features","hidden":false}, - {"type":"fix","section":"Bug Fixes","hidden":false}, - {"type":"refactor","section":"Refactoring","hidden":false}, - {"type":"misc","section":"Miscellaneous","hidden":false} - ] - extra-files: | - lengow.php - README.md + target-branch: main + config-file: .github/release-please-config.json + manifest-file: .github/.release-please-manifest.json - name: Checkout appropriate branch if: ${{ !startsWith(github.head_ref, 'release-please') }} uses: actions/checkout@v4