Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
a1mersnow committed Jun 7, 2024
1 parent 13459d7 commit c095b50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aliyundrive-rename",
"type": "module",
"version": "1.9.0",
"version": "0.9.0",
"private": true,
"packageManager": "pnpm@8.15.0",
"description": "Batch rename files of aliyundrive.",
Expand Down
8 changes: 5 additions & 3 deletions release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ 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
versionTuple[2] = 0
if (index === 0) {
versionTuple[1] = 0
versionTuple[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 c095b50

Please sign in to comment.