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: replace refs/tags/ in github.ref for publish

Bogdan Chadkinfe6aaff8bb52
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f3ca56aebe..7cc8e890f0 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -73,8 +73,14 @@ jobs:
node-version: 20
cache: pnpm
- - name: bump version to ${{ github.ref }}
- run: pnpx replace-in-files-cli --string="0.191.0" --replacement="${{ github.ref }}" "**/package.json"
+ - id: version
+ run: echo "value=$(echo ${{ github.ref }} | sed 's/refs\/tags\///'" >> $GITHUB_OUTPUT
+ - name: bump version to ${{ steps.version.outputs.value }}
+ run: |
+ pnpx replace-in-files-cli \
+ --string="0.191.0" \
+ --replacement="${{ steps.version.outputs.value }}" \
+ "**/package.json"
- name: pnpm instal
run: pnpm install --ignore-scripts