aboutsummaryrefslogtreecommitdiffstats
path: root/build/release
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-10-05 18:48:27 +0200
committerGitHub <noreply@github.com>2019-10-05 18:48:27 +0200
commitd7d0b52bda74486f2351baa9d03ca4534de0d733 (patch)
tree558c5a4065aca7c8ba4882660cbf9b14f7d94227 /build/release
parent9a4d980639dd804ad320685a25b8ff4572e3f595 (diff)
downloadjquery-d7d0b52bda74486f2351baa9d03ca4534de0d733.tar.gz
jquery-d7d0b52bda74486f2351baa9d03ca4534de0d733.zip
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
Diffstat (limited to 'build/release')
-rw-r--r--build/release/dist.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/release/dist.js b/build/release/dist.js
index 577eb6404..0b1e04a7f 100644
--- a/build/release/dist.js
+++ b/build/release/dist.js
@@ -130,7 +130,8 @@ module.exports = function( Release, files, complete ) {
Release.chdir( Release.dir.dist );
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." );
// Set repo for npm publish