Update publish_npm.yaml

Signed-off-by: zhanghengxin <812718649@qq.com>
This commit is contained in:
zhanghengxin 2023-05-24 11:53:05 +08:00 committed by GitHub
parent 912ecddb21
commit 3b992feea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ jobs:
node-version: 16 node-version: 16
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: git tag --sort=-creatordate | head -n 1 - run: each $(git tag --sort=-creatordate | head -n 1)
- name: Get version - name: Get version
id: get_version id: get_version
run: echo "VERSION=$( git tag --sort=-creatordate | head -n 1 )" >> $GITHUB_OUTPUT run: echo "VERSION=$( git tag --sort=-creatordate | head -n 1 )" >> $GITHUB_OUTPUT