Skip to content

Commit c0573e4

Browse files
committed
fix git action
1 parent be4a8be commit c0573e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
- name: Get version from tag
3434
id: version
3535
run: |
36-
VERSION="${GITHUB_REF#refs/tags/v}"
36+
# Remove refs/tags/ prefix to get just the tag name
37+
VERSION="${GITHUB_REF#refs/tags/}"
3738
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
3839
echo "Extracted version: $VERSION"
3940

0 commit comments

Comments
 (0)