Skip to content

Commit 59f5a5b

Browse files
committed
Fix release workflow to handle 'v' prefix in tag names
- Strip 'v' prefix from tag name before comparing with version - Follows same pattern as timewarp-nuru workflow - Allows tags like v12.0.0-beta.1 to work properly
1 parent c847bdb commit 59f5a5b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/release-publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,14 @@ jobs:
6060
6161
# Only validate tag match for actual release events, not manual dispatch
6262
if ("${{ github.event_name }}" -eq "release") {
63-
if ($releaseVersion -ne $tagName) {
64-
throw "Release version ($releaseVersion) does not match tag name ($tagName)"
63+
# Strip 'v' prefix from tag name if present for comparison
64+
$tagNameForComparison = $tagName
65+
if ($tagName.StartsWith("v")) {
66+
$tagNameForComparison = $tagName.Substring(1)
67+
}
68+
69+
if ($releaseVersion -ne $tagNameForComparison) {
70+
throw "Release version ($releaseVersion) does not match tag name ($tagName - stripped: $tagNameForComparison)"
6571
}
6672
echo "✅ Release version matches tag name"
6773
} else {

0 commit comments

Comments
 (0)