Skip to content

Commit 7dcc8cc

Browse files
committed
ci: add version bumping with commitizen
1 parent 96441ef commit 7dcc8cc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/bumpversion.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Bump version
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
bump_version:
10+
if: "!startsWith(github.event.head_commit.message, 'bump:')"
11+
runs-on: ubuntu-latest
12+
name: "Bump version and create changelog with commitizen"
13+
steps:
14+
- name: Check out
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
token: "${{ secrets.GITHUB_TOKEN }}"
19+
- id: cz
20+
name: Create bump and changelog
21+
uses: commitizen-tools/commitizen-action@master
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
- name: Print Version
25+
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"

0 commit comments

Comments
 (0)