From 062742b328e5e548f39eb432f765eeba9619d73c Mon Sep 17 00:00:00 2001 From: David Looi Date: Mon, 21 Oct 2024 10:28:33 +1100 Subject: [PATCH] fix: upgrade release please Signed-off-by: David Looi --- .github/workflows/release.yml | 16 ++++++---------- release-please-config.json | 11 +++++++++++ 2 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 release-please-config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41caaae..72b80a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,22 +4,18 @@ on: push: branches: - master + - dl/upgrade-release-please + +permissions: + contents: write + pull-requests: write jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: googleapis/release-please-action@v4 id: release - with: - # https://github.com/google-github-actions/release-please-action - default-branch: master - release-type: ruby - package-name: bsb - version-file: lib/bsb/version.rb - fork: false - bump-minor-pre-major: true - bump-patch-for-minor-pre-major: true - if: ${{ steps.release.outputs.release_created }} uses: actions/checkout@v4 diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..05607a1 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,11 @@ +{ + "release-type": "ruby", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "packages": { + ".": { + "release-type": "ruby", + "version-file": "lib/bsb/version.rb" + } + } +}