Skip to content

Commit 5e5489c

Browse files
committed
Release: push dist to same remote as project
Conflicts: build/release/dist.js
1 parent f71d7f5 commit 5e5489c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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-compat-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-compat-dist" );
20-
2120
Release.chdir( Release.dir.base );
2221
Release.dir.dist = Release.dir.base + "/dist";
2322

@@ -96,7 +95,7 @@ module.exports = function( Release, complete ) {
9695
Release.chdir( Release.dir.dist );
9796

9897
console.log( "Pushing release to dist repo..." );
99-
Release.exec( "git push origin master --tags",
98+
Release.exec( "git push " + distRemote + " master --tags",
10099
"Error pushing master and tags to git repo." );
101100

102101
// Set repo for npm publish

0 commit comments

Comments
 (0)