Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions npmUpversionMicroTagPush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,12 @@ echo "It's green? Run it again with a release flag"
echo "Did it succeed? Great. Let's continue with tagging and more"
read -p "Press enter to continue"



echo "Old version is $oldver"
echo "Let's tag the release"

oldver=`cat package.json | grep "\"version\":" | cut -f 2 -d ":" | sed 's/"//g' | sed 's/,//g' | awk '{$1=$1};1'`
oldVerUnderscore=`echo $oldver | sed 's/\./_/g'`
vOldVerUnderscoreFinal=v$oldVerUnderscore.Final

echo "Old version is $oldver"
echo "Let's tag the release"
git tag $vOldVerUnderscoreFinal
if [ "$debug" -eq 0 ]; then
git push origin $vOldVerUnderscoreFinal
Expand Down
Loading