From 1a69f6d8e3d051be78fb948078a45026f0d6eade Mon Sep 17 00:00:00 2001 From: Nicolas Lemoine Date: Wed, 7 Feb 2024 07:56:19 +0100 Subject: [PATCH] ci: update release please (#3) --- .distignore | 2 ++ .github/workflows/release.yml | 9 +++++---- .release-please-manifest.json | 3 +++ release-please-config.json | 13 +++++++++++++ 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.distignore b/.distignore index 2f9c78d..cbd67f6 100644 --- a/.distignore +++ b/.distignore @@ -16,3 +16,5 @@ utils/ *.swp *.txt *.log +.release-please-manifest.json +release-please-config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e7bc46d..8154585 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,10 +10,11 @@ permissions: name: Release jobs: - release-please: + release: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@v4 with: - release-type: php - package-name: ${{ github.event.client_payload.repo_name }} + target-branch: ${{ github.ref_name }} + config-file: release-please-config.json + manifest-file: .release-please-manifest.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..466df71 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.1.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..579d2d9 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,13 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "php", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +}