release-plan
Version:
_The most contributor friendly and hands-off release tool there is_.
28 lines (27 loc) • 969 B
TypeScript
import type { Solution } from './plan.js';
import { Octokit } from '@octokit/rest';
type PublishOptions = {
skipRepoSafetyCheck?: boolean;
dryRun?: boolean;
otp?: string;
publishBranch?: string;
tag?: string;
access?: string;
provenance?: boolean;
};
export declare class IssueReporter {
hadIssues: boolean;
reportFailure(message: string): void;
}
export declare function createGithubRelease(octokit: Octokit, description: string, tagName: string, reporter: IssueReporter, options: PublishOptions): Promise<void>;
/**
* Call npm publish or pnpm publish on each of the packages in a plan
*
* @returns Promise<T> return value only used for testing
*/
export declare function npmPublish(solution: Solution, reporter: IssueReporter, options: PublishOptions, packageManager: string): Promise<{
args: string[];
released: Map<string, string>;
}>;
export declare function publish(opts: PublishOptions): Promise<void>;
export {};