From e56b04056556082b829e14c1d6d781e685e36166 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Wed, 15 Nov 2023 10:40:46 -0700 Subject: [PATCH] fix: pass prerelease to buildVersioningStrategy --- src/factories/versioning-strategy-factory.ts | 1 + src/factory.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/factories/versioning-strategy-factory.ts b/src/factories/versioning-strategy-factory.ts index 3a009b2ba..ba69b0714 100644 --- a/src/factories/versioning-strategy-factory.ts +++ b/src/factories/versioning-strategy-factory.ts @@ -29,6 +29,7 @@ export interface VersioningStrategyFactoryOptions { bumpMinorPreMajor?: boolean; bumpPatchForMinorPreMajor?: boolean; prereleaseType?: string; + prerelease?: boolean; github: GitHub; } diff --git a/src/factory.ts b/src/factory.ts index 1f215332a..db5ae352f 100644 --- a/src/factory.ts +++ b/src/factory.ts @@ -120,6 +120,7 @@ export async function buildStrategy( bumpMinorPreMajor: options.bumpMinorPreMajor, bumpPatchForMinorPreMajor: options.bumpPatchForMinorPreMajor, prereleaseType: options.prereleaseType, + prerelease: options.prerelease, }); const changelogNotes = buildChangelogNotes({ type: options.changelogType || 'default',