From d82313676943f4d2c9f453edf927557dfcb83d0e Mon Sep 17 00:00:00 2001 From: Jaremy Hatler Date: Thu, 21 Dec 2023 23:42:56 -0500 Subject: [PATCH] feat: add release-please workflow This adds a workflow to automatically generate release PRs using release-please. The workflow is triggered on push to the main branch and will generate a PR with the release notes for the changes since the last release. Refs: #23 Signed-off-by: Jaremy Hatler --- .github/workflows/release-please.yml | 23 +++++++++++++++++++++ .release-please-manifest.json | 3 +++ release-please-config.json | 31 ++++++++++++++++++++++++++++ 3 files changed, 57 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..a36f578 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,23 @@ +name: release-please + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + id-token: write + packages: write + +jobs: + release-please: + runs-on: ubuntu-latest + environment: main + steps: + - name: Process Release + uses: google-github-actions/release-please-action@v3 + id: release + with: + command: manifest diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..b985ff6 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.1" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..241950d --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,31 @@ +{ + "plugins": [ + "sentence-case" + ], + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "bootstrap-sha": "c3c2168fc215a14e8fb1a4b1ebd4c3d7a6614c7b", + "changelog-sections": [ + { "type": "feat", "section": "Features" }, + { "type": "feature", "section": "Features" }, + { "type": "fix", "section": "Bug Fixes" }, + { "type": "perf", "section": "Performance Improvements" }, + { "type": "revert", "section": "Reverts" }, + { "type": "docs", "section": "Documentation" }, + { "type": "style", "section": "Styles", "hidden": false }, + { "type": "chore", "section": "Miscellaneous Chores", "hidden": true }, + { "type": "refactor", "section": "Code Refactoring", "hidden": false }, + { "type": "test", "section": "Tests", "hidden": true }, + { "type": "build", "section": "Build System", "hidden": true }, + { "type": "ci", "section": "Continuous Integration", "hidden": true } + ], + "include-component-in-tag": true, + "include-v-in-tag": true, + "initial-version": "0.0.1", + "packages": { + ".": { + "release-type": "simple", + "package-name": "gentoo-precision-7540" + } + } +}