Skip to content

Commit 4212752

Browse files
author
REDMOND\acoates
committed
fix
1 parent 4dac8ea commit 4212752

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.ado/publish.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,22 +128,25 @@ function doPublish() {
128128
);
129129
};
130130

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+
131142
request.post(
132143
{
133144
url: "https://api.github.com/repos/Microsoft/react-native/releases",
134145
headers: {
135146
"User-Agent": userAgent,
136-
Authorization: authHeader,
137-
"Content-Type": "application/json"
147+
Authorization: authHeader
138148
},
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
147150
},
148151
function(err, res, body) {
149152
if (err) {

0 commit comments

Comments
 (0)