UNPKG

@coveo/semantic-monorepo-tools

Version:

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

12 lines (10 loc) 354 B
import getOptionalPositionalArgument from "../utils/getOptionalPositionalArgument.js"; import spawn from "../utils/spawn.js"; import gitLogger from "./utils/gitLogger.js"; export default async function (tag: string, commitSHA?: string) { await spawn( `git`, ["tag", tag].concat(getOptionalPositionalArgument(commitSHA)), gitLogger, ); }