mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
fix auto bump
This commit is contained in:
parent
dc1ea9f68f
commit
cf9e9e6f76
@ -151,11 +151,22 @@ async function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
currentVersion = newVersion
|
currentVersion = newVersion
|
||||||
|
|
||||||
|
// create new commit
|
||||||
|
await child_process.execSync(`git add . && git commit -m "Bump version to ${newVersion}"`, {
|
||||||
|
cwd: process.cwd(),
|
||||||
|
stdio: "inherit"
|
||||||
|
})
|
||||||
|
|
||||||
|
// push to remote
|
||||||
|
await child_process.execSync(`git push`, {
|
||||||
|
cwd: process.cwd(),
|
||||||
|
stdio: "inherit"
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log("🚫 Current version is already latest version, please bump version first. \n - use --bump <patch|minor|major> to automatically bump version. \n - use --force to force release.")
|
console.log("🚫 Current version is already latest version, please bump version first. \n - use --bump <patch|minor|major> to automatically bump version. \n - use --force to force release.")
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!latestRelease) return
|
if (!latestRelease) return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user