Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
a1mersnow committed Nov 30, 2023
1 parent 1753d16 commit 3505e16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ function bumpVersion(mode) {

const index = groups.findIndex(x => x === mode)
versionTuple[index]++
if (index === 1)
versionTuple[index + 1] = 0
if (index === 0)
versionTuple[index + 2] = 0
pkg.version = versionTuple.join('.')

fs.writeFileSync(resolve('./package.json'), `${JSON.stringify(pkg, null, 2)}\n`, 'utf-8')
Expand Down

0 comments on commit 3505e16

Please sign in to comment.