Skip to content

Commit 3209d89

Browse files
Support changeset-release/ branch with custom suffix
We're working on adding support for custom changeset-release/ branch suffixes so that we can handle multi-library monorepos changesets/action#513
1 parent c5659cf commit 3209d89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ try {
103103
);
104104

105105
// Because changeset entries are consumed and removed on the
106-
// 'changeset-release/main' branch, we need to reset the files
106+
// 'changeset-release/*' branch, we need to reset the files
107107
// so the following 'changeset version --snapshot' command will
108108
// regenerate the package version bumps with the snapshot releases
109-
if (currentBranch.trim() === 'changeset-release/main') {
109+
if (currentBranch.trim().startsWith('changeset-release/')) {
110110
await exec(
111111
'git',
112112
['checkout', 'origin/main', '--', '.changeset'],

0 commit comments

Comments
 (0)