From 41ec65e54c7b3db88c1be7465e5d01b5fb7655a8 Mon Sep 17 00:00:00 2001 From: Andrew Lisowski Date: Wed, 10 Feb 2021 23:24:38 -0800 Subject: [PATCH] working --- packages/core/src/auto.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/core/src/auto.ts b/packages/core/src/auto.ts index 0a341e82f..f3fe30cfc 100644 --- a/packages/core/src/auto.ts +++ b/packages/core/src/auto.ts @@ -1384,9 +1384,14 @@ export default class Auto { const [, latestTagInBranch] = await on( this.git.getLatestTagInBranch(currentBranch) ); + const [, tagsInBaseBranch] = await on( + this.git.getTags(`origin/${this.baseBranch}`) + ); + const [latestTagInBaseBranch] = (tagsInBaseBranch || []).reverse(); const lastTag = lastTagNotInBaseBranch || latestTagInBranch || + latestTagInBaseBranch || (await this.git.getFirstCommit()); const fullReleaseNotes = await this.release.generateReleaseNotes( @@ -1400,7 +1405,7 @@ export default class Auto { if (bump === SEMVER.noVersion) { if (options.force) { bump = SEMVER.patch; - } else {; + } else { this.logger.log.info("No version published."); return; }