mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-25 21:54:16 -08:00
Update update-version.js
This commit is contained in:
parent
742c6bcaa3
commit
381605aca1
|
@ -10,14 +10,14 @@ const newVersion = process.env.VERSION;
|
|||
|
||||
console.log("New Version: " + newVersion);
|
||||
|
||||
if (!newVersion) {
|
||||
if (! newVersion) {
|
||||
console.error("invalid version");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
const exists = tagExists(newVersion);
|
||||
|
||||
if (!exists) {
|
||||
if (! exists) {
|
||||
|
||||
// Process package.json
|
||||
pkg.version = newVersion;
|
||||
|
@ -51,7 +51,7 @@ function tag(version) {
|
|||
}
|
||||
|
||||
function tagExists(version) {
|
||||
if (!version) {
|
||||
if (! version) {
|
||||
throw new Error("invalid version");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue