diff --git a/misc/release/pump-version.sh b/misc/release/pump-version.sh index d0db83b946..121216d4bf 100755 --- a/misc/release/pump-version.sh +++ b/misc/release/pump-version.sh @@ -25,7 +25,7 @@ while getopts 's:m:' flag; do esac done -CURRENT_SERVER=$(jq -r '.version' server/package.json) +CURRENT_SERVER=$(cat version.txt) MAJOR=$(echo "$CURRENT_SERVER" | cut -d '.' -f1) MINOR=$(echo "$CURRENT_SERVER" | cut -d '.' -f2) PATCH=$(echo "$CURRENT_SERVER" | cut -d '.' -f3) @@ -61,6 +61,7 @@ fi if [ "$CURRENT_SERVER" != "$NEXT_SERVER" ]; then echo "Pumping Server: $CURRENT_SERVER => $NEXT_SERVER" + echo "$NEXT_VERSION" > version.txt jq --arg version "$NEXT_SERVER" '.version = $version' server/package.json > server/package.json.tmp && mv server/package.json.tmp server/package.json pnpm install --frozen-lockfile --prefix server pnpm --prefix server run build diff --git a/version.txt b/version.txt new file mode 100644 index 0000000000..585940699b --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +2.2.3