Skip to content

Commit 29c1c16

Browse files
committed
fix: Tweak version tags in dev and prod
1 parent 7f1d06a commit 29c1c16

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

.github/workflows/deploy-dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: pnpm lint
3535
- name: Determine version tag for build
3636
run: |
37-
VERSION_TAG="$(git tag --points-at HEAD | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n1)-${GITHUB_SHA:0:7}"
37+
VERSION_TAG="SHA-${GITHUB_SHA:0:7}"
3838
echo "VITE_STUDIO_VERSION=$VERSION_TAG" >> $GITHUB_ENV
3939
- name: Build dev
4040
run: pnpm build:dev

.github/workflows/deploy-prod.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ jobs:
3131
run: pnpm test
3232
- name: Run lint
3333
run: pnpm lint
34-
- name: Determine version tag for build
35-
run: |
36-
VERSION_TAG=$(git tag --points-at HEAD | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+' | sort -V | tail -n1)
37-
if [ -z "$VERSION_TAG" ]; then
38-
VERSION_TAG="v0.0.0+${GITHUB_SHA:0:7}"
39-
fi
40-
echo "VITE_STUDIO_VERSION=$VERSION_TAG" >> $GITHUB_ENV
4134
- name: Build prod
4235
run: pnpm build:prod
4336
- name: Install HarperDB

0 commit comments

Comments
 (0)