chore: skip release script if no changes

This commit is contained in:
jdx 2025-07-27 13:46:04 -05:00
parent eccbf00da1
commit eba59a9eef
No known key found for this signature in database
GPG key ID: 584DADE86724B407

View file

@ -26,8 +26,13 @@ fi
git config user.name mise-en-dev
git config user.email 123107610+mise-en-dev@users.noreply.github.com
# Update package.json version
npm version "${version#v}" --no-git-tag-version
# Update package.json version if it's different
if [ "$cur_version" != "${version#v}" ]; then
npm version "${version#v}" --no-git-tag-version
else
echo "Version $cur_version is already current, no changes to release"
exit 0
fi
git add package.json package-lock.json
git status