Skip to content

Commit 3ffd9b5

Browse files
committed
ci: fix versioning
1 parent 5a06af3 commit 3ffd9b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ await $`cp -r tsp-output build`;
99
await $`cp -r vendors build`;
1010
await $`cp -r assets build`;
1111

12-
if ((await $`git branch --show-current`) != 'main') {
12+
const branch = await $`git branch --show-current`.quiet();
13+
if (branch.stdout.trim() != 'main') {
1314
const hash = (await $`git rev-parse --short HEAD`.quiet()).toString().trim();
1415
const version = `${hash}`;
1516

0 commit comments

Comments
 (0)