mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: Support jquery-release --dry-run flag
Without this change passing `--dry-run` to jquery-release still pushes to the
jquery-dist repository which is dangerous as one can assume `--dry-run` to be
safe from external side effects.
Close gh-4498
(cherry picked from commit d7d0b52bda
)
This commit is contained in:
parent
279d2e979e
commit
c7a5e1bd79
@ -135,7 +135,8 @@ module.exports = function( Release, files, 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 " + distRemote + " master --tags",
|
Release.exec( "git push " + ( Release.isTest ? " --dry-run " : "" ) +
|
||||||
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user