UNPKG

@coveo/semantic-monorepo-tools

Version:

A library of helper functions to do SemVer2 compliant releases from Conventional Commits in monorepos

16 lines (13 loc) 416 B
import spawn from "../utils/spawn.js"; import gitLogger from "./utils/gitLogger.js"; export default async function (name?: string, email?: string) { if (name) { await setUserProperty("name", name); } if (email) { await setUserProperty("email", email); } } async function setUserProperty(key: string, value: string) { await spawn("git", ["config", "--global", `user.${key}`, value], gitLogger); }