Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
92 changes: 58 additions & 34 deletions sr.yaml
Original file line number Diff line number Diff line change
@@ -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<type>\w+)(?:\((?P<scope>[^)]+)\))?(?P<breaking>!)?:\s+(?P<description>.+)
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
Loading