Skip to content

Commit 10f3f94

Browse files
committed
Reference the changeset-release/main branch explicitly
1 parent 2453caf commit 10f3f94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ jobs:
8989
run: |
9090
PR_NUMBER=$(gh pr list --head changeset-release/main --json number --jq '.[0].number')
9191
if [ -n "$PR_NUMBER" ]; then
92-
VERSION=$(jq -r '.version' packages/cli-v3/package.json)
92+
git fetch origin changeset-release/main
93+
# we arbitrarily reference the version of the cli package here; it is the same for all package releases
94+
VERSION=$(git show origin/changeset-release/main:packages/cli-v3/package.json | jq -r '.version')
9395
gh pr edit "$PR_NUMBER" --title "chore: release v$VERSION"
9496
fi

0 commit comments

Comments
 (0)