From 48f4897d8ef1637b620b80b2f9ff8229d9abfe12 Mon Sep 17 00:00:00 2001 From: Paul Sturgess Date: Tue, 5 Dec 2023 16:25:30 +0000 Subject: [PATCH] setup release please (#37) --- .github/.release-please-manifest.json | 3 ++ .github/release-please-config.json | 65 +++++++++++++++++++++++++++ .github/workflows/ci.yml | 19 ++++++++ 3 files changed, 87 insertions(+) create mode 100644 .github/.release-please-manifest.json create mode 100644 .github/release-please-config.json diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json new file mode 100644 index 0000000..b985ff6 --- /dev/null +++ b/.github/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.1" +} diff --git a/.github/release-please-config.json b/.github/release-please-config.json new file mode 100644 index 0000000..bff0029 --- /dev/null +++ b/.github/release-please-config.json @@ -0,0 +1,65 @@ +{ + "bootstrap-sha": "06044867da1edbac03aca0fd58cd40de6abe6a77", + "packages": { + ".": { + "release-type": "ruby", + "changelog-path": "CHANGELOG.md", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "draft": false, + "prerelease": false, + "include-v-in-tag": false, + "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" + }, + { + "type": "chore", + "section": "Miscellaneous Chores" + }, + { + "type": "refactor", + "section": "Code Refactoring" + }, + { + "type": "test", + "section": "Tests" + }, + { + "type": "build", + "section": "Build System" + }, + { + "type": "ci", + "section": "Continuous Integration" + } + ] + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7afea87..82de858 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,25 @@ name: CI on: push jobs: + release-please: + name: Release Please + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + outputs: + release_created: ${{ steps.release-please.outputs.release_created }} + tag_name: ${{ steps.release-please.outputs.tag_name }} # e.g. v1.0.0 + version: ${{ steps.release-please.outputs.version }} # e.g. 1.0.0 + steps: + - uses: tibdex/github-app-token@v1 + id: generate-github-token + with: + app_id: ${{ vars.RELEASE_PLEASE_GITHUB_APP_ID }} + private_key: ${{ secrets.RELEASE_PLEASE_GITHUB_APP_PRIVATE_KEY }} + - uses: krystal/release-please-manifest-action@v1 + id: release-please + with: + token: ${{ steps.generate-github-token.outputs.token }} + lint: runs-on: ubuntu-latest steps: