Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 7abfddf

Browse files
Robert Messerlejelbourn
authored andcommitted
fix(release): specifies upstream URL when pushing to material repo
Closes #7852
1 parent cdecdd2 commit 7abfddf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

release.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
function createChangelog () {
9494
start(`Generating changelog from ${oldVersion.cyan} to ${newVersion.cyan}...`);
9595

96-
exec('git fetch --tags');
96+
exec(`git fetch --tags ${origin}`);
9797
exec(`git checkout v${lastMajorVer} -- CHANGELOG.md`);
9898
exec(`gulp changelog --sha=$(git merge-base v${lastMajorVer} HEAD)`);
9999

@@ -180,7 +180,7 @@
180180
pushCmds.push(
181181
`git tag v${newVersion} -f`,
182182
`git push ${origin} HEAD`,
183-
'git push --tags'
183+
`git push --tags ${origin}`
184184
);
185185
}
186186

@@ -360,7 +360,7 @@
360360
'git add CHANGELOG.md',
361361
'git add package.json',
362362
`git commit -m "update version number in package.json to ${newVersion}"`,
363-
'git push'
363+
`git push ${origin} master`
364364
);
365365

366366
function buildCommand () {

0 commit comments

Comments
 (0)