Skip to content

Commit

Permalink
1.0.1 -> 1.1.0 and 1.2.3 -> 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Jul 10, 2021
1 parent b29f03a commit f6ece62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/bump-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ async function doit() {
// Calculate next version
const { version } = systemJson
const versionParts = version.split('.')
if (mode === 'major') versionParts[0]++
if (mode === 'minor') versionParts[1]++
if (mode === 'patch') versionParts[2]++
if (mode === 'major') {versionParts[0]++; versionParts[1] = '0'; versionParts[2] = '0'}
if (mode === 'minor') {versionParts[1]++; versionParts[2] = '0'}
if (mode === 'patch') {versionParts[2]++}
const nextVersion = versionParts.join('.')

// Write out system file
Expand Down

0 comments on commit f6ece62

Please sign in to comment.