Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
- name: Check if package version changed
id: check_version
run: |
name="$(cat package.json | jq -r '.name')"
version="v$(cat package.json | jq -r '.version')"
if [ $(git tag -l "$version") ]; then
if npm view "$name@$version" &> /dev/null; then
echo "Tag $version already exists."
else
echo "version_tag=$version" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -65,4 +66,4 @@ jobs:
else
# For pre-release versions, use the 'next' tag
npm publish --access public --tag next
fi
fi
Loading