mirror of
https://github.com/jdx/mise-action.git
synced 2026-05-14 22:00:34 +00:00
fix: v2 release tag automation
This commit is contained in:
parent
fa0ff8d11f
commit
cf44a563b9
1 changed files with 6 additions and 1 deletions
|
|
@ -36,7 +36,12 @@ 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
|
||||
cur_pkg_version="$(jq -r .version package.json)"
|
||||
if [ "$cur_pkg_version" != "${version#v}" ]; then
|
||||
npm version "${version#v}" --no-git-tag-version
|
||||
else
|
||||
echo "Package.json already at version ${version#v}"
|
||||
fi
|
||||
|
||||
git add package.json package-lock.json
|
||||
git status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue