Skip to content

Commit

Permalink
chore: fix failing release script
Browse files Browse the repository at this point in the history
- small regression after migrating to tinyexec which only supports async execution, so we simply need to await certain git commands
  • Loading branch information
ghiscoding committed Nov 16, 2024
1 parent d158bad commit cb393ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/github-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -103,5 +103,5 @@ export function createRelease(
return Promise.resolve();
}

return client.repos.createRelease(releaseOptions);
return await client.repos.createRelease(releaseOptions);
}

0 comments on commit cb393ed

Please sign in to comment.