From d315e8306bbfed32a13b82ff7a73beb851ff2371 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Wed, 4 Aug 2021 13:59:42 +0800 Subject: [PATCH] update to 1.0.10 --- README.md | 4 ++-- extra/update-version.js | 12 ++++++++++-- package.json | 6 +++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1fd43a44..53411542 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ https://github.com/louislam/uptime-kuma/wiki/Reverse-Proxy [![Deploy to DO](https://www.deploytodo.com/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/louislam/uptime-kuma/tree/master&refcode=e2c7eb658434) @@ -93,7 +93,7 @@ PS: For every new release, it takes some time to build the docker image, please ```bash git fetch --all -git checkout 1.0.9 --force +git checkout 1.0.10 --force npm install npm run build pm2 restart uptime-kuma diff --git a/extra/update-version.js b/extra/update-version.js index 2296deed..ab020c38 100644 --- a/extra/update-version.js +++ b/extra/update-version.js @@ -52,11 +52,19 @@ if (! exists) { function commit(version) { let msg = "update to " + version; - child_process.spawnSync("git", ["commit", "-m", msg]); + + let res = child_process.spawnSync("git", ["commit", "-m", msg, "-a"]); + let stdout = res.stdout.toString().trim(); + console.log(stdout) + + if (stdout.includes("no changes added to commit")) { + throw new Error("commit error") + } } function tag(version) { - child_process.spawnSync("git", ["tag", version]); + let res = child_process.spawnSync("git", ["tag", version]); + console.log(res.stdout.toString().trim()) } function tagExists(version) { diff --git a/package.json b/package.json index 44acd995..def27f79 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uptime-kuma", - "version": "1.0.9", + "version": "1.0.10", "license": "MIT", "repository": { "type": "git", @@ -16,10 +16,10 @@ "update": "", "build": "vite build", "vite-preview-dist": "vite preview --host", - "build-docker": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma -t louislam/uptime-kuma:1 -t louislam/uptime-kuma:1.0.9 --target release . --push", + "build-docker": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma -t louislam/uptime-kuma:1 -t louislam/uptime-kuma:1.0.10 --target release . --push", "build-docker-nightly": "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t louislam/uptime-kuma:nightly --target nightly . --push", "build-docker-nightly-amd64": "docker buildx build --platform linux/amd64 -t louislam/uptime-kuma:nightly-amd64 --target nightly . --push", - "setup": "git checkout 1.0.9 && npm install && npm run build", + "setup": "git checkout 1.0.10 && npm install && npm run build", "update-version": "node extra/update-version.js", "mark-as-nightly": "node extra/mark-as-nightly.js" },