Skip to content

Commit

Permalink
chore: fix version determination for beta script
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Feb 23, 2024
1 parent 5954a8d commit ac076b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release_publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,17 @@ jobs:
run: |
git config --local user.email ${{ secrets.GH_DEPLOY_EMAIL }}
git config --local user.name ${{ secrets.GH_DEPLOY_NAME }}
- name: Get last beta version from package.json
id: version
if: github.event.inputs.kind == 'mirror'
run: echo "::set-output name=value::$(bun --silent release latest beta)"
- 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
- uses: ./.github/actions/setup
with:
install: true
repo-token: ${{ secrets.GH_DEPLOY_TOKEN }}
- name: Get most recent beta version
id: version
if: github.event.inputs.kind == 'mirror'
run: echo "value=$(bun --silent release latest beta)" >> $GITHUB_OUTPUT
- name: Publish New Release
# For beta-cycle we always increment from the branch state
# For mirror we increment from the last beta version, unless it's start of a new cycle.
Expand Down

0 comments on commit ac076b0

Please sign in to comment.