projex
Version:
A command line to manage the workflow
28 lines (27 loc) • 1.03 kB
TypeScript
import { VersionFileUtils } from '../../../../shared/index';
import { ReleaseType } from 'semver';
export declare class ReleaseUtils {
versionFileUtils: VersionFileUtils;
constructor();
commit: (tagName: string, releaseType: string) => any;
push: (tagName: string, noTag: boolean | undefined) => any;
checkNothingToCommit: () => boolean;
checkIfGitPushWorks: () => void;
preRelease: ({ checkPreRelease, noPreRelease, releaseType, }: {
noPreRelease?: boolean;
checkPreRelease?: boolean;
releaseType: ReleaseType;
}) => Promise<any>;
confirmRelease: (newVersion: string) => Promise<boolean>;
postRelease: (noPostRelease?: boolean) => any;
updateChangelog: (changelogVersion: string, changelog: string) => void;
private getChangelogDate;
getRelease: (tagName: string) => {
releaseType: ReleaseType;
oldVersion: string;
newVersion: string;
tagText: string;
changelogVersion: string;
changelog: string;
};
}