From c6b8303d2f1d667e0019ee22ff21641aff2a1007 Mon Sep 17 00:00:00 2001 From: zhanghengxin <812718649@qq.com> Date: Wed, 24 May 2023 11:22:07 +0800 Subject: [PATCH] Update publish_npm.yaml Signed-off-by: zhanghengxin <812718649@qq.com> --- .github/workflows/publish_npm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_npm.yaml b/.github/workflows/publish_npm.yaml index bf1fce8..81013c7 100644 --- a/.github/workflows/publish_npm.yaml +++ b/.github/workflows/publish_npm.yaml @@ -19,7 +19,7 @@ jobs: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: git describe --abbrev=0 + - run: git describe --tags `git rev-list --tags --max-count=1` - name: Get version id: get_version run: echo "VERSION=$( git describe --tags `git rev-list --tags --max-count=1` )" >> $GITHUB_OUTPUT