UNPKG

@ng-builders/semrel

Version:
27 lines (26 loc) 847 B
import { Context, PluginSpec } from 'semantic-release'; export declare const STABLE_CHANNEL = "stable"; export interface Tag { version: string; channel: string; project?: string; } export interface SemanticReleaseContext extends Context { branch: { name: string; channel?: string; }; } export declare function parseTag(tag: string): Tag; export declare function getTags(branch: string): Promise<Tag[]>; export declare function getSortedVersions(tags: Tag[], { project, channel }: { project: string; channel?: string; }): string[]; export declare function prepare({ publishPath }: { publishPath: string; }, context: SemanticReleaseContext): Promise<void>; export declare function preparePlugin({ publishable, publishPath }: { publishable: boolean; publishPath: string; }): PluginSpec | null;