Skip to content

Commit 0b7deac

Browse files
authored
fix(release): oops shell scripts are relative to cwd (#5368)
* fix(release): oops shell scripts are relative to cwd * fix(release): properly handle semver release types previously, specifying "minor" via `yarn release:version minor` would use the literal string "minor"
1 parent fd33716 commit 0b7deac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/release/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if which gh >/dev/null; then
3636
git branch -D "$BRANCH"
3737

3838
# Wait for CI to complete
39-
./wait-for-pr.sh "$BRANCH"
39+
. "$(dirname "$0")/wait-for-pr.sh" "$BRANCH"
4040
if ! gh pr checks --fail-fast --watch; then
4141
echo 'CI failed. Cannot continue with release.'
4242
gh pr view "$BRANCH" --web

scripts/release/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if which gh 2>/dev/null 1>/dev/null; then
3838
git switch "$BASE_BRANCH"
3939
git branch -D "$BRANCH"
4040

41-
./wait-for-pr.sh "$BRANCH"
41+
. "$(dirname "$0")/wait-for-pr.sh" "$BRANCH"
4242
while [ "$(gh pr view "$BRANCH" --json state -q .state)" != 'MERGED' ]; do
4343
sleep 3 # Wait for GitHub to auto-merge the PR
4444
done

0 commit comments

Comments
 (0)