From 5ca79f02c95449650d68940af3629355bac95d8a Mon Sep 17 00:00:00 2001 From: nicos_backbase Date: Mon, 13 Oct 2025 19:21:03 +0200 Subject: [PATCH] ci: use conventional commits to trigger release --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1e2db4..122d456 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,9 +4,17 @@ on: push: branches: - main + paths: + - 'src/**' + - 'Cargo.toml' + - 'Cargo.lock' pull_request: branches: - main + paths: + - 'src/**' + - 'Cargo.toml' + - 'Cargo.lock' permissions: contents: write @@ -59,8 +67,9 @@ jobs: uses: paulhatch/semantic-version@v5.4.0 with: tag_prefix: "v" - major_pattern: "(MAJOR)" - minor_pattern: "(MINOR)" + major_pattern: "(MAJOR|BREAKING CHANGE|!:)" + minor_pattern: "(MINOR|feat:|feature:)" + patch_pattern: "(PATCH|fix:|patch:|hotfix:)" version_format: "${major}.${minor}.${patch}" change_path: "src" namespace: ""