From e50343b06b539fcc914b8288c537df40fd539319 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 22 Nov 2022 18:24:26 +0800 Subject: [PATCH] refactor(tools): reduce release steps --- tools/release.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/release.sh b/tools/release.sh index 0f5d85f..c4623ea 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -104,6 +104,10 @@ check() { _bump_file() { for i in "${!FILES[@]}"; do + if [[ ${FILES[$i]} == $NODE_CONFIG ]]; then + continue + fi + sed -i "s/v[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+/v$1/" "${FILES[$i]}" done @@ -183,7 +187,7 @@ main() { fi fi - _version="$(grep '"version":' package.json | sed 's/.*: "//;s/".*//')" + _version="$(grep '"version":' "$NODE_CONFIG" | sed 's/.*: "//;s/".*//')" echo -e "Bump version number to $_version\n" bump "$_version"