Commit 5e5489ce authored by Timmy Willison's avatar Timmy Willison

Release: push dist to same remote as project

Conflicts:
	build/release/dist.js
parent f71d7f56
...@@ -4,6 +4,7 @@ module.exports = function( Release, complete ) { ...@@ -4,6 +4,7 @@ module.exports = function( Release, complete ) {
fs = require( "fs" ), fs = require( "fs" ),
shell = require( "shelljs" ), shell = require( "shelljs" ),
pkg = require( Release.dir.repo + "/package.json" ), pkg = require( Release.dir.repo + "/package.json" ),
distRemote = Release.remote.replace( "jquery", "jquery-compat-dist" ),
// These files are included with the distrubtion // These files are included with the distrubtion
files = [ files = [
"src", "src",
...@@ -16,8 +17,6 @@ module.exports = function( Release, complete ) { ...@@ -16,8 +17,6 @@ module.exports = function( Release, complete ) {
* Clone the distribution repo * Clone the distribution repo
*/ */
function clone() { function clone() {
var distRemote = Release.remote.replace( "jquery", "jquery-compat-dist" );
Release.chdir( Release.dir.base ); Release.chdir( Release.dir.base );
Release.dir.dist = Release.dir.base + "/dist"; Release.dir.dist = Release.dir.base + "/dist";
...@@ -96,7 +95,7 @@ module.exports = function( Release, complete ) { ...@@ -96,7 +95,7 @@ module.exports = function( Release, complete ) {
Release.chdir( Release.dir.dist ); Release.chdir( Release.dir.dist );
console.log( "Pushing release to dist repo..." ); console.log( "Pushing release to dist repo..." );
Release.exec( "git push origin master --tags", Release.exec( "git push " + distRemote + " master --tags",
"Error pushing master and tags to git repo." ); "Error pushing master and tags to git repo." );
// Set repo for npm publish // Set repo for npm publish
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment