Skip to content

Commit b8d4e4f

Browse files
committed
Fix publish action
1 parent 8829788 commit b8d4e4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Check version
3333
run: |
3434
VERSION_TAG="${GITHUB_REF#refs/tags/}"
35-
PACKAGE_VERSION=$(node -p "require('./package.json').version")
35+
PACKAGE_VERSION=v$(node -p "require('./package.json').version")
3636
if [ "$VERSION_TAG" != "$PACKAGE_VERSION" ]; then
3737
echo "Error: Git tag ($VERSION_TAG) does not match package.json version ($PACKAGE_VERSION)"
3838
exit 1

0 commit comments

Comments
 (0)