Skip to content

Commit 18120f7

Browse files
authored
Update release-drafter.yml
1 parent 120d424 commit 18120f7

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/release-drafter.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# --- Release Title and Tag Templates ---
2-
# $RESOLVED_VERSION is calculated based on the version-template below
3-
name-template: 'v$RESOLVED_VERSION Pre-release 🏗️'
4-
tag-template: 'v$RESOLVED_VERSION'
2+
# Use curly braces ${} for better variable resolution safety
3+
name-template: 'v${major}.${minor}.${patch}-rc.${number} Pre-release 🏗️'
4+
tag-template: 'v${major}.${minor}.${patch}-rc.${number}'
55

66
# --- Pre-release Logic ---
77
# Marks the release as "Pre-release" in the GitHub UI
88
prerelease: true
99

10-
# Versioning logic:
11-
# Uses the next calculated patch version and appends the PR number as a suffix
12-
# Example: 1.2.0-rc.105
13-
version-template: '$NEXT_PATCH_VERSION-rc.$NUMBER'
10+
# This is the most stable way to define the version string
11+
version-template: '${major}.${minor}.${patch}-rc.${number}'
1412

1513
# --- Version Increment Rules ---
1614
# Determines whether to bump Major, Minor, or Patch based on PR Labels

0 commit comments

Comments
 (0)