Permalink
Browse files

Release: push dist to same remote as project

  • Loading branch information...
timmywil committed Jan 30, 2015
1 parent a76c781 commit 1ba45fcc15c894cad591d93cbb88010df5f235fe
Showing with 2 additions and 3 deletions.
  1. +2 −3 build/release/dist.js
View
@@ -4,6 +4,7 @@ module.exports = function( Release, complete ) {
fs = require( "fs" ),
shell = require( "shelljs" ),
pkg = require( Release.dir.repo + "/package.json" ),
distRemote = Release.remote.replace( "jquery", "jquery-dist" ),
// These files are included with the distrubtion
files = [
"src",
@@ -16,8 +17,6 @@ module.exports = function( Release, complete ) {
* Clone the distribution repo
*/
function clone() {
var distRemote = Release.remote.replace( "jquery", "jquery-dist" );
Release.chdir( Release.dir.base );
Release.dir.dist = Release.dir.base + "/dist";
@@ -93,7 +92,7 @@ module.exports = function( Release, complete ) {
Release.chdir( Release.dir.dist );
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." );
// Set repo for npm publish

0 comments on commit 1ba45fc

Please sign in to comment.