semver fix

This commit is contained in:
vapormusic 2022-05-21 09:46:22 +07:00
parent 5e5d713a28
commit 49300cb6e2
3 changed files with 27 additions and 26 deletions

View file

@ -4,5 +4,5 @@ LATESTSHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable
COMMITSINCESTABLE=$(git rev-list $LATESTSHA..HEAD --count)
VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 4 | head -1)
echo
NEWVERSION=${VERSION/-/.}.$COMMITSINCESTABLE
NEWVERSION=${VERSION/-/.}+$COMMITSINCESTABLE
npm version $NEWVERSION