mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Always prepare branch for version (#729)
* Always prepare branch for version * Update test
This commit is contained in:
@@ -235,10 +235,6 @@ export class GitHub {
|
||||
}
|
||||
|
||||
async prepareBranch(branch: string) {
|
||||
if (!this.pushWithGitCli) {
|
||||
// Preparing a new local branch is not necessary when using the API
|
||||
return;
|
||||
}
|
||||
await switchToMaybeExistingBranch(branch, { cwd: this.cwd });
|
||||
await reset(context.sha, { cwd: this.cwd });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user