File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2525async 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}
You can’t perform that action at this time.
0 commit comments