From b3fa1dab18305e72b584f506abc6ff7b855b7206 Mon Sep 17 00:00:00 2001 From: Urmzd Mukhammadnaim Date: Wed, 15 Apr 2026 18:46:19 -0500 Subject: [PATCH] fix(ci): migrate sr v4 to v7 for artifact and input support sr v4 silently ignores `artifacts` and `force` inputs, causing release binaries to not be attached. Migrates sr.yaml to v7 config format and updates the action reference. --- .github/workflows/release.yml | 2 +- sr.yaml | 92 ++++++++++++++++++++++------------- 2 files changed, 59 insertions(+), 35 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 695a886..81a47da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,7 @@ jobs: - name: Run semantic release id: sr - uses: urmzd/sr@v4 + uses: urmzd/sr@v7 with: github-token: ${{ steps.app-token.outputs.token }} force: ${{ inputs.force }} diff --git a/sr.yaml b/sr.yaml index fbfecec..aa3d3b7 100644 --- a/sr.yaml +++ b/sr.yaml @@ -1,38 +1,62 @@ -# sr v4 configuration +# sr v7 configuration # Reference: https://github.com/urmzd/sr#configuration +git: + tag_prefix: v + floating_tag: true + commit: - pattern: ^(?P\w+)(?:\((?P[^)]+)\))?(?P!)?:\s+(?P.+) - breaking_section: Breaking Changes - misc_section: Miscellaneous types: - - name: feat - bump: minor - section: Features - - name: fix - bump: patch - section: Bug Fixes - - name: perf - bump: patch - section: Performance - - name: docs - section: Documentation - - name: refactor - bump: patch - section: Refactoring - - name: revert - section: Reverts - - name: chore - - name: ci - - name: test - - name: build - - name: style -release: - branches: - - main - tag_prefix: v - changelog: - file: CHANGELOG.md - version_files: - - Cargo.toml - floating_tags: true + minor: + - feat + patch: + - fix + - perf + - refactor + none: + - docs + - revert + - chore + - ci + - test + - build + - style + +changelog: + file: CHANGELOG.md + groups: + - name: breaking + content: + - breaking + - name: features + content: + - feat + - name: bug-fixes + content: + - fix + - name: performance + content: + - perf + - name: refactoring + content: + - refactor + - name: misc + content: + - docs + - revert + - chore + - ci + - test + - build + - style + +channels: + default: stable + branch: main + content: + - name: stable + +packages: + - path: . + version_files: + - Cargo.toml