diff --git a/.github/workflows/publish_npm.yaml b/.github/workflows/publish_npm.yaml index 03510eb..8ab9ccc 100644 --- a/.github/workflows/publish_npm.yaml +++ b/.github/workflows/publish_npm.yaml @@ -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