From b4e1b3825fa818b61f9aae69a6ef1517be3a251d Mon Sep 17 00:00:00 2001 From: Jerome Luckenbach Date: Sun, 28 Feb 2021 20:34:22 +0100 Subject: [PATCH] Update github release script. Signed-off-by: Jerome Luckenbach --- .azure-pipelines/github-release/github-release.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.azure-pipelines/github-release/github-release.js b/.azure-pipelines/github-release/github-release.js index 538e6fb..307c0dc 100644 --- a/.azure-pipelines/github-release/github-release.js +++ b/.azure-pipelines/github-release/github-release.js @@ -21,11 +21,11 @@ This is intended to be run by the release pipeline only.`); process.exit(1); } -const auth = createActionAuth(); -const authentication = await auth(); - async function createRelease() { + const auth = createActionAuth(); + const authentication = await auth(); + const octokit = new Octokit({ auth: authentication.token });