From f39b38afc35e4754bd71a9bb75cfa1f0aea9dcbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hub=C3=A9rt=20de=20Lalye?= Date: Tue, 29 Oct 2024 22:30:00 +0400 Subject: [PATCH] fixed publish script --- .github/workflows/publish-sdk.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-sdk.yml b/.github/workflows/publish-sdk.yml index d4b41c4f17..5e234f90e4 100644 --- a/.github/workflows/publish-sdk.yml +++ b/.github/workflows/publish-sdk.yml @@ -49,14 +49,17 @@ jobs: - name: Bump version working-directory: ./sdk run: | + yarn plugin import version + if [ "${{ github.event.inputs.version_type }}" == "custom" ]; then if [ -z "${{ github.event.inputs.custom_version }}" ]; then echo "Custom version not specified" exit 1 fi - yarn version --new-version "${{ github.event.inputs.custom_version }}" --no-git-tag-version + yarn version "${{ github.event.inputs.custom_version }}" --no-git-tag-version else - yarn version --${{ github.event.inputs.version_type }} --no-git-tag-version + yarn version ${{ github.event.inputs.version_type }} --no-git-tag-version + fi - name: Commit version bump working-directory: ./sdk