Skip to content

Commit 1ba45fc

Browse files
committed
Release: push dist to same remote as project
1 parent a76c781 commit 1ba45fc

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

build/release/dist.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = function( Release, complete ) {
44
fs = require( "fs" ),
55
shell = require( "shelljs" ),
66
pkg = require( Release.dir.repo + "/package.json" ),
7+
distRemote = Release.remote.replace( "jquery", "jquery-dist" ),
78
// These files are included with the distrubtion
89
files = [
910
"src",
@@ -16,8 +17,6 @@ module.exports = function( Release, complete ) {
1617
* Clone the distribution repo
1718
*/
1819
function clone() {
19-
var distRemote = Release.remote.replace( "jquery", "jquery-dist" );
20-
2120
Release.chdir( Release.dir.base );
2221
Release.dir.dist = Release.dir.base + "/dist";
2322

@@ -93,7 +92,7 @@ module.exports = function( Release, complete ) {
9392
Release.chdir( Release.dir.dist );
9493

9594
console.log( "Pushing release to dist repo..." );
96-
Release.exec( "git push origin master --tags",
95+
Release.exec( "git push " + distRemote + " master --tags",
9796
"Error pushing master and tags to git repo." );
9897

9998
// Set repo for npm publish

0 commit comments

Comments
 (0)