Update publish_npm.yaml

change git hash

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

View File

@ -20,7 +20,7 @@ jobs:
registry-url: https://registry.npmjs.org/
- name: Get version
id: get_version
run: echo "VERSION=$( git describe --abbrev=0 )" >> $GITHUB_OUTPUT
run: echo "VERSION=$( git rev-parse --short "$GITHUB_SHA" )" >> $GITHUB_OUTPUT
- name: Get commit id
id: get_commit_id
run: echo "COMMIT_ID=${ github.sha }" >> $GITHUB_OUTPUT