Skip to content

Commit

Permalink
build: fix publishing beta version of packages (#4784)
Browse files Browse the repository at this point in the history
Beta version is published without replacing packages version in
templates. Reused the code from release action.
  • Loading branch information
TrySound authored Jan 24, 2025
1 parent c562e1c commit d6dcf02
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@ jobs:
- id: tag
run: echo "value=$(echo ${{ github.event.label.name }} | cut -d ':' -f2)" >> $GITHUB_OUTPUT

- name: Creating version using ${{ steps.short_sha.outputs.value }} sha
run: pnpm -r exec pnpm version prepatch --preid ${{ steps.short_sha.outputs.value }}
- name: bump version to 0.0.0-${{ steps.short_sha.outputs.value }}
run: |
pnpx replace-in-files-cli \
--string="0.0.0-webstudio-version" \
--replacement="0.0.0-${{ steps.short_sha.outputs.value }}" \
"**/package.json"
- run: pnpm -r build
- run: pnpm -r dts
- run: pnpm --filter="webstudio..." build
- run: pnpm --filter="webstudio..." dts

- name: Publishing ${{ steps.tag.outputs.value }} tag with sha ${{ steps.short_sha.outputs.value }}
run: pnpm -r publish --tag "${{ steps.tag.outputs.value }}" --no-git-checks --access public

0 comments on commit d6dcf02

Please sign in to comment.