From b6c2cd83ea0c0ec2792962df03ad98296a3c0f44 Mon Sep 17 00:00:00 2001 From: Igor Aleksanov Date: Thu, 29 Aug 2024 11:34:49 +0400 Subject: [PATCH] feat: Introduce release-please --- .github/release-please/config.json | 3 +++ .github/release-please/manifest.json | 10 ++++++++++ .github/workflows/release-please.yml | 29 ++++++++++++++++++++++++++++ CHANGELOG.md | 0 4 files changed, 42 insertions(+) create mode 100644 .github/release-please/config.json create mode 100644 .github/release-please/manifest.json create mode 100644 .github/workflows/release-please.yml create mode 100644 CHANGELOG.md diff --git a/.github/release-please/config.json b/.github/release-please/config.json new file mode 100644 index 0000000..f607001 --- /dev/null +++ b/.github/release-please/config.json @@ -0,0 +1,3 @@ +{ + ".": "0.150.4" +} diff --git a/.github/release-please/manifest.json b/.github/release-please/manifest.json new file mode 100644 index 0000000..64beef5 --- /dev/null +++ b/.github/release-please/manifest.json @@ -0,0 +1,10 @@ +{ + "bootstrap-sha": "653bd479e3604c81852702c6870f0cb8a4540508", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "packages": { + ".": { + "release-type": "simple" + } + } +} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..72bcef5 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,29 @@ +on: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +name: release-please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - name: Run release-please + id: release + uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3 + with: + token: ${{ secrets.RELEASE_TOKEN }} + config-file: .github/release-please/config.json + manifest-file: .github/release-please/manifest.json + + - name: Send Release Info + if: ${{ steps.release.outputs.releases_created == 'true' }} + uses: matter-labs/format-release-please-for-slack-action@69e6fe9e4ec531b7b5fb0d826f73c190db83cf42 # v2.1.0 + with: + release-please-output: ${{ toJSON(steps.release.outputs) }} + slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_RELEASES }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29