Skip to content

Commit 5500564

Browse files
committed
ci: web version
1 parent ea744e9 commit 5500564

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: 更新版本号
4242
run: |
43-
ver=$(git describe --tags --always --match "v*" 2>/dev/null || echo "v0.0.1")
43+
ver=$(git describe --tags --long --match "v*" 2>/dev/null || echo "v0.0.1-0-g$(git rev-parse --short HEAD)")
4444
ver=${ver#v}
4545
echo "Setting version to ${ver}"
4646
npm pkg set version=${ver}

0 commit comments

Comments
 (0)