Skip to content

Commit

Permalink
chore: fix version detection in beta CI
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Feb 23, 2024
1 parent 1c1544b commit 27c1d74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release_publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 27c1d74

Please sign in to comment.