- 删除 VERSION 文件 - publish.sh:用 git describe --exact-match 读当前 commit 的 tag 若无精确 tag 则拒绝构建并打印提示 - tag 支持 v1.2.3 或 1.2.3,推送时自动去掉 v 前缀 - 构建流程:git tag vX.Y.Z → git push origin vX.Y.Z → git pull --tags → bash scripts/publish.sh
- 删除 VERSION 文件 - publish.sh:用 git describe --exact-match 读当前 commit 的 tag 若无精确 tag 则拒绝构建并打印提示 - tag 支持 v1.2.3 或 1.2.3,推送时自动去掉 v 前缀 - 构建流程:git tag vX.Y.Z → git push origin vX.Y.Z → git pull --tags → bash scripts/publish.sh