Update publish_npm.yaml

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

View File

@ -22,7 +22,7 @@ jobs:
- run: echo $(git tag --sort=-creatordate | head -n 1)
- name: 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
- name: Get commit id
id: get_commit_id
run: echo "COMMIT_ID=$( git rev-parse --short "$GITHUB_SHA" )" >> $GITHUB_OUTPUT