Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
REDMOND\acoates committed Mar 7, 2019
1 parent 4dac8ea commit 4212752
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .ado/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,22 +128,25 @@ function doPublish() {
);
};


const createReleaseRequestBody = {
tag_name: `v${releaseVersion}`,
target_commitish: tempPublishBranch,
name: `v${releaseVersion}`,
body: `v${releaseVersion}`,
draft: false,
prerelease: true
};
console.log('createReleaseRequestBody: ' + JSON.stringify(createReleaseRequestBody, null, 2));

request.post(
{
url: "https://api.github.com/repos/Microsoft/react-native/releases",
headers: {
"User-Agent": userAgent,
Authorization: authHeader,
"Content-Type": "application/json"
Authorization: authHeader
},
body: JSON.stringify({
tag_name: `v${releaseVersion}`,
target_commitish: tempPublishBranch,
name: `v${releaseVersion}`,
body: `v${releaseVersion}`,
draft: false,
prerelease: true
})
form: createReleaseRequestBody
},
function(err, res, body) {
if (err) {
Expand Down

0 comments on commit 4212752

Please sign in to comment.