From 27c1d74a7023ca4f751dc5200e4c45ad413e791c Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Fri, 23 Feb 2024 01:25:32 -0800 Subject: [PATCH] chore: fix version detection in beta CI --- .github/workflows/release_publish-beta.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_publish-beta.yml b/.github/workflows/release_publish-beta.yml index b8ee0e8a2d5..2b6fd70ba2d 100644 --- a/.github/workflows/release_publish-beta.yml +++ b/.github/workflows/release_publish-beta.yml @@ -64,6 +64,9 @@ jobs: id: version with: cmd: 'jq .version package.json -r' + - name: Last Beta Version + if: github.event.inputs.kind == 'mirror' + run: echo "Last Beta Version: ${{ steps.version.outputs.value }}" - name: Reset the Beta Branch if: github.event.inputs.kind == 'mirror' || github.event.inputs.is-cycle-start == 'true' run: git reset --hard origin/main && git push origin beta -f @@ -82,7 +85,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} - name: Publish New Mirror Release if: github.event.inputs.kind == 'mirror' - run: bun release exec publish beta --from=${{ steps.version.outputs.stdout }} + run: bun release exec publish beta --from=${{ steps.version.outputs.value }} env: FORCE_COLOR: 2 CI: true