Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
deleonio committed Nov 21, 2024
1 parent a9896bc commit 9fc4e28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
- major
label: # see https://github.com/lerna/lerna/tree/main/libs/commands/version#--preid
type: choice
description: SemVer pre release label
description: SemVer pre release label (optional)
options:
- rc
- beta
Expand Down Expand Up @@ -94,9 +94,14 @@ jobs:
git config --local user.email "${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
git config --local user.name "${{ steps.app-token.outputs.app-slug }}[bot]"
- name: Bump Versions
- name: Bump versions without dev-tag and with git push
if: github.event.inputs.tag != 'dev'
run: 'HUSKY=0 npx lerna version ${{github.event.inputs.version}} --preid=${{github.event.inputs.label}} --no-private --tag-version-prefix="" -m "chore: release %v" -y --force-publish'

- name: Bump versions with dev-tag and without git push
if: github.event.inputs.tag == 'dev'
run: 'HUSKY=0 npx lerna version prerelease --preid=$GITHUB_SHA --no-private --tag-version-prefix="" -m "chore: release %v" -y --force-publish --no-push'

- name: Build
run: pnpm -r build

Expand Down

0 comments on commit 9fc4e28

Please sign in to comment.