Skip to content

Commit c1edee6

Browse files
authored
fix: use correct paths in sdk release script (#699)
1 parent 65d19aa commit c1edee6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ci-scripts/sdk_release_pr.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
# Fail script if any command fails
1515
set -e
1616

17-
SDK_DIR=$(dirname $0)/../sdk
17+
GIT_ROOT=$(git rev-parse --show-toplevel)
18+
SDK_DIR=$GIT_ROOT/sdk
1819

1920
# Bump version of all packages
20-
for p in $(pwd)/sdk/packages/*
21+
for p in $SDK_DIR/packages/*
2122
do
2223
cd $p
2324
version=$(npm version minor)
@@ -28,7 +29,7 @@ cd $SDK_DIR
2829
pnpm run lint:fix
2930

3031
# Ensure we are in the git root
31-
cd $(git rev-parse --show-toplevel)
32+
cd $GIT_ROOT
3233

3334
echo "Preparing PR for SDK version $version"
3435

0 commit comments

Comments
 (0)