From 50c8089a6c4f9a64480e4460710cb0f3d53d5bb8 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Mon, 28 Oct 2024 12:32:11 +0100 Subject: [PATCH] setup pre-release for stable branch --- .github/release-drafter.yml | 26 ------------------- .github/workflows/release-drafter-stable.yml | 23 +++++++++++----- ...ev.json => .release-please-config-dev.json | 0 .release-please-config-stable.json | 8 ++++++ .release-please-manifest-stable.json | 3 +++ 5 files changed, 27 insertions(+), 33 deletions(-) delete mode 100644 .github/release-drafter.yml rename release-please-config-dev.json => .release-please-config-dev.json (100%) create mode 100644 .release-please-config-stable.json create mode 100644 .release-please-manifest-stable.json diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 797c1170f..000000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,26 +0,0 @@ -name-template: '$RESOLVED_VERSION' -tag-template: '$RESOLVED_VERSION' -change-template: '- #$NUMBER - $TITLE (@$AUTHOR)' -categories: - - title: "⚠ Breaking Changes" - labels: - - 'breaking-change' - - title: '⬆️ Dependencies' - collapse-after: 1 - labels: - - 'dependencies' - - 'ci' -template: | - ## What’s Changed - - $CHANGES -version-resolver: - major: - labels: - - 'breaking-change' - minor: - labels: - - 'new-feature' - - 'new-provider' - - 'refactor' - default: patch diff --git a/.github/workflows/release-drafter-stable.yml b/.github/workflows/release-drafter-stable.yml index 1c49f2aea..e1600f5b2 100644 --- a/.github/workflows/release-drafter-stable.yml +++ b/.github/workflows/release-drafter-stable.yml @@ -1,15 +1,24 @@ -name: Release Drafter - +name: Release Notes drafter (release-please) STABLE on: push: branches: - stable +permissions: + contents: write + pull-requests: write + jobs: - update_release_draft: + release-please: runs-on: ubuntu-latest + outputs: + version: ${{ steps.release.outputs.tag_name }} + release_created: ${{ steps.release.outputs.release_created }} steps: - # Drafts your next Release notes as Pull Requests are merged into "master" - - uses: release-drafter/release-drafter@v6.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: googleapis/release-please-action@v4 + id: release + with: + token: ${{ secrets.GITHUB_TOKEN }} + release-type: simple + manifest-file: .release-please-manifest-stable.json + config-file: .release-please-config-stable.json diff --git a/release-please-config-dev.json b/.release-please-config-dev.json similarity index 100% rename from release-please-config-dev.json rename to .release-please-config-dev.json diff --git a/.release-please-config-stable.json b/.release-please-config-stable.json new file mode 100644 index 000000000..d1de93f00 --- /dev/null +++ b/.release-please-config-stable.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "draft": true + } + } +} diff --git a/.release-please-manifest-stable.json b/.release-please-manifest-stable.json new file mode 100644 index 000000000..aca3a4946 --- /dev/null +++ b/.release-please-manifest-stable.json @@ -0,0 +1,3 @@ +{ + ".": "2.3.1" +}