Skip to content

Commit 877ae8e

Browse files
committed
Add repo to another git push command
1 parent 8772b06 commit 877ae8e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/release/steps/bump-prettier.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ async function format() {
77
await runYarn(["lint:prettier", "--write"]);
88
}
99

10-
async function commit(version) {
10+
async function commit({version, repo}) {
1111
await runGit(["commit", "-am", `Bump Prettier dependency to ${version}`]);
1212

1313
// Add rev to `.git-blame-ignore-revs` file
@@ -19,7 +19,7 @@ async function commit(version) {
1919
fs.writeFileSync(file, text);
2020
await runGit(["commit", "-am", `Git blame ignore ${version}`]);
2121

22-
await runGit(["push"]);
22+
await runGit(["push", "--repo", repo]);
2323
}
2424

2525
async function bump({
@@ -50,5 +50,5 @@ export default async function bumpPrettier(params) {
5050

5151
await logPromise("Updating files", format());
5252
await logPromise("Bump default branch version", bump(params));
53-
await logPromise("Committing changed files", commit(version));
53+
await logPromise("Committing changed files", commit(params));
5454
}

0 commit comments

Comments
 (0)