Update publish_npm.yaml

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

View File

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