scripts/release/utils.js/logPromise
async function logPromise(name, promiseOrAsyncFunction) {
  const promise =
    typeof promiseOrAsyncFunction === "function"
      ? promiseOrAsyncFunction()
      : promiseOrAsyncFunction;

  process.stdout.write(fitTerminal(name));

  try {
    const result = await promise;
    process.stdout.write(`${OK}\n`);
    return result;
  } catch (error) {
    process.stdout.write(`${FAIL}\n`);
    throw error;
  }
}