Skip to content

Commit

Permalink
feat: added release please (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: lostbean <[email protected]>
  • Loading branch information
h4ck3rk3y and lostbean authored Jul 4, 2024
1 parent d007773 commit 7c38358
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/conventional-pr-checker.yml
Original file line number Diff line number Diff line change
@@ -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 }}
26 changes: 26 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0

0 comments on commit 7c38358

Please sign in to comment.