File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -128,22 +128,25 @@ function doPublish() {
128
128
) ;
129
129
} ;
130
130
131
+
132
+ const createReleaseRequestBody = {
133
+ tag_name : `v${ releaseVersion } ` ,
134
+ target_commitish : tempPublishBranch ,
135
+ name : `v${ releaseVersion } ` ,
136
+ body : `v${ releaseVersion } ` ,
137
+ draft : false ,
138
+ prerelease : true
139
+ } ;
140
+ console . log ( 'createReleaseRequestBody: ' + JSON . stringify ( createReleaseRequestBody , null , 2 ) ) ;
141
+
131
142
request . post (
132
143
{
133
144
url : "https://api.github.com/repos/Microsoft/react-native/releases" ,
134
145
headers : {
135
146
"User-Agent" : userAgent ,
136
- Authorization : authHeader ,
137
- "Content-Type" : "application/json"
147
+ Authorization : authHeader
138
148
} ,
139
- body : JSON . stringify ( {
140
- tag_name : `v${ releaseVersion } ` ,
141
- target_commitish : tempPublishBranch ,
142
- name : `v${ releaseVersion } ` ,
143
- body : `v${ releaseVersion } ` ,
144
- draft : false ,
145
- prerelease : true
146
- } )
149
+ form : createReleaseRequestBody
147
150
} ,
148
151
function ( err , res , body ) {
149
152
if ( err ) {
You can’t perform that action at this time.
0 commit comments