UNPKG

xrelease

Version:

xrelease (pronounced cross-release) helps you setup automated releases for your project for any language

36 lines (35 loc) 819 B
export interface VersionConfig { files?: Array<{ path: string; pattern: string; template: string; }>; } export interface ChangelogConfig { enabled?: boolean; template?: 'conventional' | 'simple'; } export interface Step { type: string; command?: string; } export interface Action extends Step { name?: string; assets?: string | string[]; } export interface ReleaseConfig { branch?: string; branches?: string[]; defaultBump?: 'major' | 'minor' | 'patch'; version?: VersionConfig; changelog?: ChangelogConfig; checks?: Step[]; pre?: Step[]; actions?: Action[]; post?: Step[]; } export interface Config { version: number; release: ReleaseConfig; } export declare function readConfig(configPath?: string): Promise<Config>;