From de5d2e38d62145cfe93f424f197cfe36cdd0c9d0 Mon Sep 17 00:00:00 2001 From: DeveloperC Date: Sat, 12 Oct 2024 03:34:46 +0100 Subject: [PATCH] ci: adding release-please (#22) Using the release process from Google's release-please tooling and workflow. Google's release-please opens a release pull request, which automates CHANGELOG generation and version bumps, by parsing git history for Conventional Commit messages. Upon merging the release pull request a new release is created. * https://github.com/googleapis/release-please * https://github.com/google-github-actions/release-please-action --- .github/workflows/release-please.yml | 19 +++++++++++++++++++ .release-please-manifest.json | 1 + release-please-config.json | 8 ++++++++ 3 files changed, 28 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..b4c6660 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,19 @@ +name: Continuous Delivery (CD) + +on: + push: + branches: + - main + +# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1 @@ +{} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..64798c9 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,8 @@ +{ + "changelog-type": "github", + "release-type": "simple", + "pull-request-title-pattern": "chore: release ${version}", + "packages": { + ".": {} + } +}