From 7048cf224795db41cd1910706bc859696639ee45 Mon Sep 17 00:00:00 2001 From: Richie McIlroy <33632126+richiemcilroy@users.noreply.github.com> Date: Mon, 18 Mar 2024 23:35:25 +0000 Subject: [PATCH] feat: add appVersion to dummy .env file creation --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0a76614..1fc22654 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,9 +42,14 @@ jobs: - name: Install dependencies run: cd apps/desktop && pnpm install + - name: Get app version + id: get_version + run: echo "appVersion=$(jq -r '.version' apps/desktop/package.json)" >> $GITHUB_OUTPUT + - name: Create .env file run: | echo "NEXT_PUBLIC_URL=${{ secrets.NEXT_PUBLIC_URL }}" > apps/desktop/.env + echo "appVersion=${{ steps.get_version.outputs.appVersion }}" >> apps/desktop/.env - name: Build the app uses: tauri-apps/tauri-action@v0