fix: commit id as version id

This commit is contained in:
Yifei Zhang
2023-03-30 18:15:49 +00:00
parent 83862eae44
commit 2f2e0b6762
2 changed files with 6 additions and 3 deletions

View File

@@ -8,7 +8,8 @@ import { ACCESS_CODES, IS_IN_DOCKER } from "./api/access";
let COMMIT_ID: string | undefined;
try {
COMMIT_ID = process
.execSync("git describe --tags --abbrev=0")
// .execSync("git describe --tags --abbrev=0")
.execSync("git rev-parse --short HEAD")
.toString()
.trim();
} catch (e) {