File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,10 @@ The previous release version (used for determining what changed).
235
235
236
236
The version that will be set in ` package.json ` after the release.
237
237
238
+ #### cdnPublish
239
+
240
+ Set to ` false ` to prevent publishing to the jQuery CDN. Defaults to ` true ` .
241
+
238
242
#### npmPublish
239
243
240
244
Set to ` true ` to publish a release via npm. Defaults to ` false ` .
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module.exports = function( Release ) {
22
22
}
23
23
24
24
Release . define ( {
25
+ cdnPublish : true ,
25
26
_cloneCdnRepo : function ( ) {
26
27
var local = Release . dir . base + "/codeorigin.jquery.com" ,
27
28
remote = Release . isTest ? testRemote : realRemote ;
Original file line number Diff line number Diff line change @@ -42,10 +42,16 @@ commonTasks = [
42
42
Release . confirmReview ,
43
43
Release . _pushRelease ,
44
44
45
- Release . _section ( "publishing to jQuery CDN" ) ,
46
- Release . _copyCdnArtifacts ,
47
- Release . confirmReview ,
48
- Release . _pushToCdn ,
45
+ function ( fn ) {
46
+ if ( Release . cdnPublish ) {
47
+ Release . _section ( "publishing to jQuery CDN" ) ( ) ;
48
+ Release . _walk ( [
49
+ Release . _copyCdnArtifacts ,
50
+ Release . confirmReview ,
51
+ Release . _pushToCdn
52
+ ] , fn ) ;
53
+ }
54
+ } ,
49
55
50
56
function ( ) {
51
57
if ( Release . npmPublish ) {
You can’t perform that action at this time.
0 commit comments