Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd7d0b52

Browse files
authored
Build: Support jquery-release --dry-run flag
Without this change passing `--dry-run` to jquery-release still pushes to thejquery-dist repository which is dangerous as one can assume `--dry-run` to besafe from external side effects.Closegh-4498
1 parent9a4d980 commitd7d0b52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎build/release/dist.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ module.exports = function( Release, files, complete ) {
130130
Release.chdir(Release.dir.dist);
131131

132132
console.log("Pushing release to dist repo...");
133-
Release.exec("git push "+distRemote+" master --tags",
133+
Release.exec("git push "+(Release.isTest ?" --dry-run " :"")+
134+
distRemote+" master --tags",
134135
"Error pushing master and tags to git repo.");
135136

136137
// Set repo for npm publish

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp