mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-15 14:20:32 +00:00
fix: v2 release tag automation
This commit is contained in:
parent
75121b9a3f
commit
583fe7be9d
1 changed files with 8 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue