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-please-config-dev.json b/.github/workflows/.release-please-config-dev.json new file mode 100644 index 000000000..52898f80e --- /dev/null +++ b/.github/workflows/.release-please-config-dev.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "prerelease": true, + "versioning-strategy": "prerelease", + "prerelease-type": "beta", + "draft": true + } + } +} diff --git a/.github/workflows/.release-please-config-stable.json b/.github/workflows/.release-please-config-stable.json new file mode 100644 index 000000000..d1de93f00 --- /dev/null +++ b/.github/workflows/.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/.github/workflows/.release-please-manifest-dev.json b/.github/workflows/.release-please-manifest-dev.json new file mode 100644 index 000000000..11094440f --- /dev/null +++ b/.github/workflows/.release-please-manifest-dev.json @@ -0,0 +1,3 @@ +{ + ".": "2.4.0b2" +} diff --git a/.github/workflows/.release-please-manifest-stable.json b/.github/workflows/.release-please-manifest-stable.json new file mode 100644 index 000000000..aca3a4946 --- /dev/null +++ b/.github/workflows/.release-please-manifest-stable.json @@ -0,0 +1,3 @@ +{ + ".": "2.3.1" +} diff --git a/.github/workflows/release-drafter-stable.yml b/.github/workflows/release-drafter-stable.yml index 1c49f2aea..bdb4818f8 100644 --- a/.github/workflows/release-drafter-stable.yml +++ b/.github/workflows/release-drafter-stable.yml @@ -1,15 +1,29 @@ -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 +<<<<<<< Updated upstream + manifest-file: .release-please-manifest-stable.json + config-file: .release-please-config-stable.json +======= + manifest-file: .github/workflows/.release-please-manifest-stable.json + config-file: .github/workflows/.release-please-config-stable.json +>>>>>>> Stashed changes diff --git a/.github/workflows/release-please-dev.yml b/.github/workflows/release-please-dev.yml index 62fa6b4b4..067760acd 100644 --- a/.github/workflows/release-please-dev.yml +++ b/.github/workflows/release-please-dev.yml @@ -21,5 +21,10 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} release-type: simple +<<<<<<< Updated upstream manifest-file: .release-please-manifest-dev.json config-file: .release-please-config-dev.json +======= + manifest-file: .github/workflows/.release-please-manifest-dev.json + config-file: .github/workflows/.release-please-config-dev.json +>>>>>>> Stashed changes 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" +}