You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
branch input conflates version branch name and PR base, making per-workspace release branches impossible in monorepos #575
This coupling makes it impossible to have separate release staging branches per workspace while all targeting the same base branch (e.g., main).
Use Case
In a multi-workspace monorepo (e.g., many pnpm workspaces in one repo), each workspace needs to release independently via separate changesets-action invocations. You'd want:
Workspace A → version branch changeset-release/workspace-a, PR targets main
Workspace B → version branch changeset-release/workspace-b, PR targets main
But this is impossible today because:
If you set branch: main for all workspaces, they all collide on changeset-release/main
If you set a unique branch per workspace (e.g., branch: changesets-workspace-a), the PR base becomes changesets-workspace-a which doesn't exist, resulting in:
Option A — Add a new headBranch / versionBranch input:
- uses: changesets/action@v1with:
branch: main # PR base (existing behavior)versionBranch: changeset-release/workspace-a # override the version branch name
Activity