You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Note: this assumes that WISE version is the first "version":"..." field in package.json
sed -i.bak "1,/\"version\": \".*\"/{s/\"version\": \".*\"/\"version\": \"${NEW_VERSION_NUMBER}\"/;}" package.json && rm package.json.bak
# Note: this assumes that WISE version is the first "version":"..." field in package-lock.json
sed -i.bak "1,/\"version\": \".*\"/{s/\"version\": \".*\"/\"version\": \"${NEW_VERSION_NUMBER}\"/;}" package-lock.json && rm package-lock.json.bak
# Note: this assumes that WISE version is the first <version>...</version> tag in pom.xml
sed -i.bak "1,/<version>.*<\/version>/{s/<version>.*<\/version>/<version>${NEW_VERSION_NUMBER}<\/version>/;}" pom.xml && rm pom.xml.bak
echo "Bumped version number to ${NEW_VERSION_NUMBER}.\nYou might want to commit changes now:\ngit commit -a -m \"Bumped version number to ${NEW_VERSION_NUMBER}\""