createTempDir = async () => {
  const baseDir = await fs.realpath(
    process.env.GITHUB_ACTIONS === 'true' ? process.env.RUNNER_TEMP : os.tmpdir()
  )

  const tempDir = path.join(baseDir, 'lint-staged', crypto.randomUUID())
  await fs.mkdir(tempDir, { recursive: true })

  return normalizePath(tempDir)
}
Create temporary random directory and return its path
@returns {Promise<String>}