ensure to increment patch version of current release of plugins when re-adding 
the -dev suffix to versions during plugin release.


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/b1e777f9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/b1e777f9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/b1e777f9

Branch: refs/heads/plugins-releaser
Commit: b1e777f9a901a3b44a2ee6a49004437524507ad9
Parents: 3d22145
Author: filmaj <[email protected]>
Authored: Wed Mar 1 15:13:15 2017 -0800
Committer: filmaj <[email protected]>
Committed: Wed Mar 1 15:13:15 2017 -0800

----------------------------------------------------------------------
 src/plugin-release.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/b1e777f9/src/plugin-release.js
----------------------------------------------------------------------
diff --git a/src/plugin-release.js b/src/plugin-release.js
index e6c7a13..175b041 100644
--- a/src/plugin-release.js
+++ b/src/plugin-release.js
@@ -474,11 +474,12 @@ function *interactive_plugins_release() {
             return inquirer.prompt(prompts);
         }).then(function() {
             /* 11. Increment plugin versions back on the master branch to 
include -dev*/
+            // Also increment the patch version
             // So, check out master branch and do the thing.
             return co.wrap(function *() {
                 yield repoutil.forEachRepo(plugin_repos, function*(repo) {
                     var plugin_name = repo.repoName;
-                    var newest_version = 
plugin_data[plugin_name].current_release + '-dev';
+                    var newest_version = 
semver.inc(plugin_data[plugin_name].current_release, 'patch') + '-dev';
                     console.log('Checking out master branch of', plugin_name, 
'and setting version to', newest_version, ', then committing that change to 
master branch...');
                     yield gitutil.gitCheckout('master');
                     // store previous master HEAD, for later 
comparison/showing of diff


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to