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 });