UNPKG

@ossjs/release

Version:

Minimalistic, opinionated, and predictable release automation tool.

7 lines (5 loc) 212 B
import { execAsync } from '#/src/utils/exec-async.js' export async function getCurrentBranch(): Promise<string> { const { stdout } = await execAsync('git rev-parse --abbrev-ref HEAD') return stdout.trim() }