if [ $# -eq 0 ]; then echo "You must pass the version number." exit 1 fi sed -i "4s/.*/ \"version\": \"$1\",/" package.json sed -i "5s/.*/ \"version\": \"$1\",/" app.json yarn git add package.* app.json git commit -m "release: version $1" git tag -a "v$1" -m "Version $1"