Skip to content

Commit 3c786ea

Browse files
committed
Release ts client 0.1.2
1 parent e31575b commit 3c786ea

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

scripts/release-ts.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,18 @@ fi
88

99
ROOT_DIR=$(git rev-parse --show-toplevel)
1010
SRC_DIR=$ROOT_DIR/src
11-
current_version=$(npm pkg get version | tr -d '"')
11+
current_version=$(npm pkg get version --prefix $SRC_DIR/ts | tr -d '"')
1212

1313
IFS='.' read -r major minor patch <<< "$current_version"
14+
echo "Current version: $current_version"
1415
if [[ $version == "minor" ]]; then
1516
version="$major.$((minor+1)).0"
1617
elif [[ $version == "major" ]]; then
1718
version="$((major+1)).0.0"
1819
elif [[ $version == "patch" ]]; then
1920
version="$major.$minor.$((patch+1))"
2021
fi
22+
echo "New version: $version"
2123
if [[ ! $version =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
2224
echo "Version must be in the format x.y.z"
2325
exit 1

src/ts/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ts/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vectorize-io/vectorize-client",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Client for the Vectorize API",
55
"author": "Vectorize <[email protected]>",
66
"repository": {

0 commit comments

Comments
 (0)