fix: v2 release tag automation

This commit is contained in:
jdx 2025-07-27 13:50:16 -05:00
parent 75121b9a3f
commit 583fe7be9d
No known key found for this signature in database
GPG key ID: 584DADE86724B407

View file

@ -22,17 +22,18 @@ if [ "${DRY_RUN:-1}" == 1 ]; then
exit 0
fi
# Check if there are any unreleased changes
if [ -z "$changelog" ] || [ "$changelog" = "<!-- generated by git-cliff -->" ]; then
echo "No unreleased changes found"
exit 0
fi
# Configure git for automated commits
git config user.name mise-en-dev
git config user.email 123107610+mise-en-dev@users.noreply.github.com
# 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
# Update package.json version
npm version "${version#v}" --no-git-tag-version
git add package.json package-lock.json
git status