Skip to content

Commit

Permalink
ci: fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
RanolP committed Apr 27, 2024
1 parent 5a06af3 commit 3ffd9b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ await $`cp -r tsp-output build`;
await $`cp -r vendors build`;
await $`cp -r assets build`;

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

Expand Down

0 comments on commit 3ffd9b5

Please sign in to comment.