Skip to content

Commit b4dbb54

Browse files
authored
feat: add version-resolver for PR-based version bumps (#12)
Switch from $NEXT_PATCH_VERSION to $RESOLVED_VERSION with version-resolver config. This enables major/minor/patch version bumps via PR labels.
1 parent fe60a7e commit b4dbb54

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/release-drafter.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
1-
name-template: $NEXT_PATCH_VERSION
2-
tag-template: $NEXT_PATCH_VERSION
1+
name-template: $RESOLVED_VERSION
2+
tag-template: $RESOLVED_VERSION
33
commitish: draft-release
4+
5+
version-resolver:
6+
major:
7+
labels:
8+
- 'major'
9+
minor:
10+
labels:
11+
- 'minor'
12+
patch:
13+
labels:
14+
- 'patch'
15+
default: patch
16+
417
template: |
518
## Changes
619

0 commit comments

Comments
 (0)