Skip to content

Commit

Permalink
Merge pull request #6 from tomascohen/master
Browse files Browse the repository at this point in the history
Version increment doesn't recognise major/minor version changes corre…
  • Loading branch information
kylemhall authored May 24, 2018
2 parents 7c2c003 + 89f10fa commit 6a02b1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions increment_version.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ let patch = parseInt( version_parts[2] );

const prev_version = json.previous_version;
const prev_version_parts = prev_version.split('.');
let prev_major = parseInt( version_parts[0] );
let prev_minor = parseInt( version_parts[1] );
let prev_patch = parseInt( version_parts[2] );
let prev_major = parseInt( prev_version_parts[0] );
let prev_minor = parseInt( prev_version_parts[1] );
let prev_patch = parseInt( prev_version_parts[2] );

let new_version;

Expand Down

0 comments on commit 6a02b1b

Please sign in to comment.