Skip to content

Commit 25d142c

Browse files
chore: release on push to default
1 parent 3393270 commit 25d142c

File tree

1 file changed

+26
-11
lines changed

1 file changed

+26
-11
lines changed

.github/workflows/release.yaml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
1-
---
2-
name: "release"
1+
name: Bump version
32

43
on:
54
push:
6-
tags:
7-
- "v*"
5+
branches:
6+
- master
87

9-
jobs:
10-
tagged-release:
11-
name: "Release"
12-
runs-on: "ubuntu-latest"
8+
permissions:
9+
contents: write
1310

11+
jobs:
12+
bump-version:
13+
if: "!startsWith(github.event.head_commit.message, 'bump:')"
14+
runs-on: ubuntu-latest
15+
name: "Bump version and create changelog with commitizen"
1416
steps:
15-
- uses: "marvinpinto/action-automatic-releases@latest"
17+
- name: Check out
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
token: "${{ secrets.GITHUB_TOKEN }}"
22+
- name: Create bump and changelog
23+
uses: commitizen-tools/commitizen-action@master
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
changelog_increment_filename: body.md
27+
- name: Release
28+
uses: softprops/action-gh-release@v1
1629
with:
17-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
18-
prerelease: false
30+
body_path: "body.md"
31+
tag_name: ${{ env.REVISION }}
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)