From 7c3835830b2616bffb5bbe5a64166154a5953314 Mon Sep 17 00:00:00 2001 From: Gyanendra Mishra Date: Thu, 4 Jul 2024 07:48:48 -0800 Subject: [PATCH] feat: added release please (#6) Co-authored-by: lostbean --- .github/workflows/conventional-pr-checker.yml | 22 ++++++++++++++++ .github/workflows/release-please.yml | 26 +++++++++++++++++++ version.txt | 1 + 3 files changed, 49 insertions(+) create mode 100644 .github/workflows/conventional-pr-checker.yml create mode 100644 .github/workflows/release-please.yml create mode 100644 version.txt diff --git a/.github/workflows/conventional-pr-checker.yml b/.github/workflows/conventional-pr-checker.yml new file mode 100644 index 00000000..41730282 --- /dev/null +++ b/.github/workflows/conventional-pr-checker.yml @@ -0,0 +1,22 @@ +# Check PR title for conventional commits +name: Check PR title +on: + pull_request_target: + types: + - opened + - reopened + - edited + - synchronize + +# cancel redundant builds +concurrency: + group: "title-checker-${{ github.head_ref }}" + cancel-in-progress: true + +jobs: + title_check: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 00000000..11844b7d --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,26 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + # skip releases on forks + if: github.repository == 'kurtosis-tech/kardinal' + steps: + - name: Run Release Please + uses: googleapis/release-please-action@v3 + with: + token: ${{ secrets.RELEASER_TOKEN }} + release-type: simple + package-name: kardinal + bump-minor-pre-major: true + bump-patch-for-minor-pre-major: true + include-v-in-tag: false diff --git a/version.txt b/version.txt new file mode 100644 index 00000000..6c6aa7cb --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +0.1.0 \ No newline at end of file