From cb393edc1e5136f9fde69b3695dd71060e54df8d Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 16 Nov 2024 01:28:43 -0500 Subject: [PATCH] chore: fix failing release script - small regression after migrating to tinyexec which only supports async execution, so we simply need to await certain git commands --- scripts/github-release.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/github-release.mjs b/scripts/github-release.mjs index a0a59b56..5d9da57d 100644 --- a/scripts/github-release.mjs +++ b/scripts/github-release.mjs @@ -51,14 +51,14 @@ export function createReleaseClient(type) { * @param {{ tags: string[]; releaseNotes: { name: string; notes: string; }[] }} commandProps * @param {{ gitRemote: string; execOpts: import('@lerna/child-process').ExecOpts }} opts */ -export function createRelease( +export async function createRelease( client, { tag, releaseNote }, { gitRemote, execOpts }, gitDryRun = false ) { const { GITHUB_TOKEN } = process.env; - const repo = parseGitRepo(gitRemote, execOpts); + const repo = await parseGitRepo(gitRemote, execOpts); const { notes, name } = releaseNote; if (!tag) { @@ -103,5 +103,5 @@ export function createRelease( return Promise.resolve(); } - return client.repos.createRelease(releaseOptions); + return await client.repos.createRelease(releaseOptions); }