Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

build: fix publishing beta version of packages (#4784)

Bogdan Chadkind6dcf02524f3
diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml
index caf2ddcf84..718e0ebc1e 100644
--- a/.github/workflows/publish-beta.yml
+++ b/.github/workflows/publish-beta.yml
@@ -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