Skip to content

Commit 5eb7af5

Browse files
committed
npm without tag
1 parent 750a7a3 commit 5eb7af5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,13 @@ jobs:
5858
git tag -v
5959
6060
- name: Set env
61-
run: echo "PKG_VERSION=$(npm show . version)" >> $GITHUB_ENV
61+
run: |
62+
VER=$(node -p 'require("./package.json").version')
63+
echo "PKG_VERSION=$VER" >> $GITHUB_ENV
6264
6365
- name: TEST2
6466
run: |
67+
echo VER?! $VER
6568
echo $GITHUB_ENV
6669
echo ${{ env.PKG_VERSION }}
6770

0 commit comments

Comments
 (0)