Skip to content

Commit 4a8f3e1

Browse files
StevenTCramerclaude
andcommitted
Fix release workflow to strip 'v' prefix from version tag
NuGet version strings don't support the 'v' prefix. The workflow extracts the git tag (e.g., v1.0.0-beta.13) and strips the 'v' to get the proper NuGet version format (1.0.0-beta.13). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent af88228 commit 4a8f3e1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ jobs:
2020
dotnet-quality: 'preview'
2121

2222
- name: Extract version from tag
23-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
23+
run: |
24+
VERSION=${GITHUB_REF#refs/tags/}
25+
VERSION=${VERSION#v}
26+
echo "VERSION=$VERSION" >> $GITHUB_ENV
2427
2528
- name: Restore dependencies
2629
run: dotnet restore

0 commit comments

Comments
 (0)