Skip to content

Instantly share code, notes, and snippets.

@rxaviers
Created June 24, 2013 14:35
Show Gist options
  • Select an option

  • Save rxaviers/5850493 to your computer and use it in GitHub Desktop.

Select an option

Save rxaviers/5850493 to your computer and use it in GitHub Desktop.
diff --git a/build/release/release.js b/build/release/release.js
index 3cbee64..39cdc1f 100644
--- a/build/release/release.js
+++ b/build/release/release.js
@@ -119,15 +119,7 @@ function getVersions() {
minor = parseInt( parts[ 1 ], 10 );
patch = parseInt( parts[ 2 ], 10 );
- // TODO: handle 1.10.0
- // Also see comment above about pre-releases
- if ( patch === 0 ) {
- abort( "This script is not smart enough to handle the 1.10.0 release." );
- }
-
- prevVersion = patch === 0 ?
- [ major, minor - 1, 0 ].join( "." ) :
- [ major, minor, patch - 1 ].join( "." );
+ prevVersion = "1.10.2";
nextVersion = [ major, minor, patch + 1 ].join( "." ) + "pre";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment