version updater script
This commit is contained in:
parent
7e24594be4
commit
589656558b
1 changed files with 8 additions and 0 deletions
8
resources/version.sh
Executable file
8
resources/version.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
LATESTSHA=$(curl -s https://api.github.com/repos/ciderapp/Cider/branches/stable | grep sha | cut -d '"' -f 4 | sed 's/v//' | xargs)
|
||||
COMMITSINCESTABLE=$(git rev-list $LATESTSHA..HEAD --count)
|
||||
VERSION=$(grep '"version":.*' package.json | cut -d '"' -f 4 | head -1)
|
||||
echo
|
||||
NEWVERSION=${VERSION/-/.}.$COMMITSINCESTABLE
|
||||
npm version $NEWVERSION
|
Loading…
Add table
Add a link
Reference in a new issue