From d5b8d707ef13e09a410d2c03455e7ad64241a0ed Mon Sep 17 00:00:00 2001 From: Dartegnian Date: Tue, 23 Jul 2024 13:01:08 +0800 Subject: [PATCH] Get the version info inside the release object --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 826c1ad3e..1ae7ef8b9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,7 +33,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Set environment variables - run: echo RELEASE=$(cat ./src/package.json | jq -r .release) >> $GITHUB_ENV + run: echo RELEASE=$(cat ./src/package.json | jq -r .release | jq -r .version) >> $GITHUB_ENV - name: Build & Publish Docker Image uses: docker/build-push-action@v6