diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2015-01-30 12:46:48 -0800 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-01-30 12:53:28 -0800 |
commit | 1ba45fcc15c894cad591d93cbb88010df5f235fe (patch) | |
tree | e508691ca0fe2d89b7489ea55d6ad0719c2ed087 /build | |
parent | a76c7812366e7e45ea29969db72d90261ef87af5 (diff) | |
download | jquery-1ba45fcc15c894cad591d93cbb88010df5f235fe.tar.gz jquery-1ba45fcc15c894cad591d93cbb88010df5f235fe.zip |
Release: push dist to same remote as project
Diffstat (limited to 'build')
-rw-r--r-- | build/release/dist.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/build/release/dist.js b/build/release/dist.js index 21e7d5662..624e44bb0 100644 --- a/build/release/dist.js +++ b/build/release/dist.js @@ -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 |