Skip to content

Commit 5e9dada

Browse files
authored
Merge pull request #10 from codcod/8-improve-ci-for-speed-and-maintainability
ci: use conventional commits to trigger release
2 parents 52a0fe3 + 5ca79f0 commit 5e9dada

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'src/**'
9+
- 'Cargo.toml'
10+
- 'Cargo.lock'
711
pull_request:
812
branches:
913
- main
14+
paths:
15+
- 'src/**'
16+
- 'Cargo.toml'
17+
- 'Cargo.lock'
1018

1119
permissions:
1220
contents: write
@@ -59,8 +67,9 @@ jobs:
5967
uses: paulhatch/semantic-version@v5.4.0
6068
with:
6169
tag_prefix: "v"
62-
major_pattern: "(MAJOR)"
63-
minor_pattern: "(MINOR)"
70+
major_pattern: "(MAJOR|BREAKING CHANGE|!:)"
71+
minor_pattern: "(MINOR|feat:|feature:)"
72+
patch_pattern: "(PATCH|fix:|patch:|hotfix:)"
6473
version_format: "${major}.${minor}.${patch}"
6574
change_path: "src"
6675
namespace: ""

0 commit comments

Comments
 (0)