Skip to content

Commit

Permalink
fix git push
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev committed Jun 20, 2024
1 parent fe4fafc commit ffa7380
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/components/changeset-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class ChangesetClient {
.map((part) => part.trim())
.filter(Boolean);

// header is undefined when processing an empty changeset
const packages = header
? header
.split('\n')
Expand Down
3 changes: 2 additions & 1 deletion scripts/components/git-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ export class GitClient {
);
}

await this.execWithIO`git push ${force ? '--force' : ''}`;
await this
.execWithIO`git push ${force ? '--force' : ''} origin ${currentBranch}`;
};

fetchTags = async () => {
Expand Down

0 comments on commit ffa7380

Please sign in to comment.