diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dcfd65f..c5e2e44 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: bun-version: 1.0.1 - name: Get frontend package version id: get_frontend_version - run: echo frontend_version=$(bun run -e "console.log(require('./frontend/package.json').version)") >> $GITHUB_OUTPUT + run: echo frontend_version=$(jq -r '.version' ./frontend/package.json) >> $GITHUB_OUTPUT - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -53,7 +53,7 @@ jobs: bun-version: 1.0.1 - name: Get admin_frontend package version id: get_admin_frontend_version - run: echo admin_frontend_version=$(bun run -e "console.log(require('./admin_frontend/package.json').version)") >> $GITHUB_OUTPUT + run: echo admin_frontend_version=$(jq -r '.version' ./admin_frontend/package.json) >> $GITHUB_OUTPUT - name: Login to Docker Hub uses: docker/login-action@v3 with: @@ -85,7 +85,7 @@ jobs: bun-version: 1.0.1 - name: Get backend package version id: get_backend_version - run: echo backend_version=$(bun run -e "console.log(require('./backend/package.json').version)") >> $GITHUB_OUTPUT + run: echo backend_version=$(jq -r '.version' ./backend/package.json) >> $GITHUB_OUTPUT - name: Login to Docker Hub uses: docker/login-action@v3 with: