2013-11-26 21:43:00 +00:00
|
|
|
@echo off
|
2013-11-17 22:54:12 +00:00
|
|
|
|
|
|
|
rem Bump to a new version number
|
|
|
|
|
2013-11-26 21:43:00 +00:00
|
|
|
if "x%1" == "x" (
|
2013-12-03 10:09:37 +00:00
|
|
|
echo Missing version (eg '5.0.0-alpha'^)
|
2013-11-26 21:43:00 +00:00
|
|
|
exit 1
|
|
|
|
)
|
2013-11-17 22:54:12 +00:00
|
|
|
|
|
|
|
rem Set the new version number (will also commit and tag the release)
|
|
|
|
|
2013-12-03 10:09:37 +00:00
|
|
|
npm version %1 -m "Version number update for %1" || exit 1
|
2013-11-17 22:54:12 +00:00
|
|
|
|
|
|
|
rem Make sure our tags are pushed to the origin server
|
|
|
|
|
|
|
|
git push origin --tags || exit 1
|