Skip to content

Commit

Permalink
added version plugin to repo, 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 f39b38a commit 955c384
Show file tree
Hide file tree
Showing 3 changed files with 562 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/publish-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,14 @@ 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 "${{ github.event.inputs.custom_version }}" --no-git-tag-version
yarn version "${{ github.event.inputs.custom_version }}"
else
yarn version ${{ github.event.inputs.version_type }} --no-git-tag-version
yarn version ${{ github.event.inputs.version_type }}
fi
- name: Commit version bump
Expand All @@ -75,4 +73,8 @@ jobs:

- name: Push changes
run: |
if [ "${{ github.event.inputs.version_type }}" == "custom" ]; then
exit 0
fi
git push origin HEAD:${{ github.ref_name }}
Loading

0 comments on commit 955c384

Please sign in to comment.