UNPKG

956 BTypeScriptView Raw
1import { VersionLabel } from './release';
2declare enum SEMVER {
3 major = "major",
4 premajor = "premajor",
5 minor = "minor",
6 preminor = "preminor",
7 patch = "patch",
8 prepatch = "prepatch",
9 noVersion = ""
10}
11export declare type IVersionLabels = Map<VersionLabel | 'none', string[]>;
12export default SEMVER;
13/** Given two labels determine the next SEMVER bump. */
14export declare function getHigherSemverTag(left: SEMVER, right: string): SEMVER;
15interface ISemVerOptions {
16 /** Only publish changes when "release" label is present */
17 onlyPublishWithReleaseLabel?: boolean;
18}
19/**
20 * Determine the version bump from the labels on merged PRs.
21 * Respects skip-release labels and the "onlyPublishWithReleaseLabel"
22 * strategy.
23 */
24export declare function calculateSemVerBump(labels: string[][], labelMap: IVersionLabels, { onlyPublishWithReleaseLabel }?: ISemVerOptions): SEMVER | SEMVER.noVersion;
25//# sourceMappingURL=semver.d.ts.map
\No newline at end of file