From 786551d86ad27288bb2f618b91d8aa2721787787 Mon Sep 17 00:00:00 2001 From: Milo Schwartz Date: Tue, 4 Feb 2025 22:23:13 -0500 Subject: [PATCH] replace version in consts file instead of package.json --- .github/workflows/cicd.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index c211e91b..65b01b26 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -35,13 +35,8 @@ jobs: - name: Update version in package.json run: | TAG=${{ env.TAG }} - if [ -f package.json ]; then - jq --arg version "$TAG" '.version = $version' package.json > package.tmp.json && mv package.tmp.json package.json - echo "Updated package.json with version $TAG" - else - echo "package.json not found" - fi - cat package.json + sed -i "s/export const APP_VERSION = \".*\";/export const APP_VERSION = \"$TAG\";/" server/lib/consts.ts + cat server/lib/ - name: Pull latest Gerbil version id: get-gerbil-tag