Skip to content

Commit d13a9ea

Browse files
committed
Fix show version
1 parent 2789e81 commit d13a9ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
node-version: 12
1414
- name: Check tag version
1515
run: |
16-
VERSION=$(npm show . version)
16+
VERSION=$(node -e 'console.info(require("./package.json").version)')
1717
if [ "refs/tags/v${VERSION}" != $GITHUB_REF ]; then
1818
echo "Ref ${GITHUB_REF} not match"
1919
exit 1

0 commit comments

Comments
 (0)