Skip to content

Commit

Permalink
fixed publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
hubert-de-lalye committed Oct 29, 2024
1 parent 85e2df9 commit f39b38a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f39b38a

Please sign in to comment.