Repository: intuit/auto
Pull request #810 (2019-12-16 17:51:54)

release: detect prerelease branch + be smarter about commit range
# What Changed

see title

# Why

needed to do a little more when release a prerelease. also detecting that we are in a prerelease branch seems in line with what auto does elsewhere.


<!-- GITHUB_RELEASE PR BODY: canary-version -->
Published PR with canary version: <details><summary>Published under canary scope @auto-canary</summary>
- `@auto-canary/auto@8.3.0-canary.810.10665.0`
- `@auto-canary/core@8.3.0-canary.810.10665.0`
- `@auto-canary/all-contributors@8.3.0-canary.810.10665.0`
- `@auto-canary/chrome@8.3.0-canary.810.10665.0`
- `@auto-canary/conventional-commits@8.3.0-canary.810.10665.0`
- `@auto-canary/crates@8.3.0-canary.810.10665.0`
- `@auto-canary/first-time-contributor@8.3.0-canary.810.10665.0`
- `@auto-canary/git-tag@8.3.0-canary.810.10665.0`
- `@auto-canary/jira@8.3.0-canary.810.10665.0`
- `@auto-canary/maven@8.3.0-canary.810.10665.0`
- `@auto-canary/npm@8.3.0-canary.810.10665.0`
- `@auto-canary/omit-commits@8.3.0-canary.810.10665.0`
- `@auto-canary/omit-release-notes@8.3.0-canary.810.10665.0`
- `@auto-canary/released@8.3.0-canary.810.10665.0`
- `@auto-canary/s3@8.3.0-canary.810.10665.0`
- `@auto-canary/slack@8.3.0-canary.810.10665.0`
- `@auto-canary/twitter@8.3.0-canary.810.10665.0`
- `@auto-canary/upload-assets@8.3.0-canary.810.10665.0`</details>
<!-- GITHUB_RELEASE PR BODY: canary-version -->



Patch:
diff --git a/.all-contributorsrc b/.all-contributorsrc
index c59a15b2..1e8bbb17 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -98,8 +98,7 @@
       "avatar_url": "https://avatars3.githubusercontent.com/u/8219313?v=4",
       "profile": "https://github.com/bnigh",
       "contributions": [
-        "code",
-        "doc"
+        "code"
       ]
     },
     {
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c0e8e6a9..6650b34d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,25 +1,3 @@
-# v8.2.0 (Sun Dec 15 2019)
-
-#### 🚀  Enhancement
-
-- `auto`, `@auto-it/core`
-  - release: add flag to publish prerelease [#800](https://github.com/intuit/auto/pull/800) ([@hipstersmoothie](https://github.com/hipstersmoothie))
-
-#### 📝  Documentation
-
-- Slight improvements to label configuration docs [#799](https://github.com/intuit/auto/pull/799) ([@bnigh](https://github.com/bnigh))
-
-#### 📚 Blog Post
-
-- touch up blog post [#798](https://github.com/intuit/auto/pull/798) ([@hipstersmoothie](https://github.com/hipstersmoothie))
-
-#### Authors: 2
-
-- [@bnigh](https://github.com/bnigh)
-- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
-
----
-
 # v8.1.3 (Sat Dec 14 2019)
 
 #### 🐛  Bug Fix
diff --git a/Formula/auto.rb b/Formula/auto.rb
index 24030268..c2733b82 100644
--- a/Formula/auto.rb
+++ b/Formula/auto.rb
@@ -1,8 +1,8 @@
 class Auto < Formula
   desc "Generate releases based on semantic version labels on pull requests."
   homepage "https://intuit.github.io/auto/home.html"
-  url "https://github.com/intuit/auto/releases/download/v8.2.0/auto-macos.gz"
-  sha256 "7d6df1d07fc8663cdbb6b5415d0e872f531b0fdcba05d559a7b6015e493107e4"
+  url "https://github.com/intuit/auto/releases/download/v8.1.3/auto-macos.gz"
+  sha256 "e83a7d185f73201a0a2b8a69b4ea88de26c998b076dac3df1ca4261d1d4a4e26"
 
   def install
     libexec.install Dir["*"]
diff --git a/README.md b/README.md
index 57e8042c..e5842e3c 100644
--- a/README.md
+++ b/README.md
@@ -178,7 +178,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
   </tr>
   <tr>
     <td align="center"><a href="https://github.com/hello-woof"><img src="https://avatars2.githubusercontent.com/u/48960849?v=4" width="100px;" alt=""/><br /><sub><b>Zachary Sherwin</b></sub></a><br /><a href="https://github.com/intuit/auto/commits?author=hello-woof" title="Code">💻</a> <a href="https://github.com/intuit/auto/commits?author=hello-woof" title="Documentation">📖</a> <a href="https://github.com/intuit/auto/commits?author=hello-woof" title="Tests">⚠️</a></td>
-    <td align="center"><a href="https://github.com/bnigh"><img src="https://avatars3.githubusercontent.com/u/8219313?v=4" width="100px;" alt=""/><br /><sub><b>bnigh</b></sub></a><br /><a href="https://github.com/intuit/auto/commits?author=bnigh" title="Code">💻</a> <a href="https://github.com/intuit/auto/commits?author=bnigh" title="Documentation">📖</a></td>
+    <td align="center"><a href="https://github.com/bnigh"><img src="https://avatars3.githubusercontent.com/u/8219313?v=4" width="100px;" alt=""/><br /><sub><b>bnigh</b></sub></a><br /><a href="https://github.com/intuit/auto/commits?author=bnigh" title="Code">💻</a></td>
     <td align="center"><a href="https://github.com/su7edja"><img src="https://avatars0.githubusercontent.com/u/2717065?v=4" width="100px;" alt=""/><br /><sub><b>su7edja</b></sub></a><br /><a href="https://github.com/intuit/auto/commits?author=su7edja" title="Code">💻</a></td>
     <td align="center"><a href="https://github.com/yogikhan"><img src="https://avatars3.githubusercontent.com/u/16071601?v=4" width="100px;" alt=""/><br /><sub><b>Yogesh Khandlewal</b></sub></a><br /><a href="https://github.com/intuit/auto/commits?author=yogikhan" title="Code">💻</a></td>
     <td align="center"><a href="https://github.com/Celeo"><img src="https://avatars1.githubusercontent.com/u/772507?v=4" width="100px;" alt=""/><br /><sub><b>Matt Boulanger</b></sub></a><br /><a href="https://github.com/intuit/auto/commits?author=Celeo" title="Code">💻</a></td>
diff --git a/lerna.json b/lerna.json
index ac2ca553..0d1a76fa 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,5 +1,5 @@
 {
-  "version": "8.2.0",
+  "version": "8.1.3",
   "npmClient": "yarn",
   "useWorkspaces": true,
   "packages": [
diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md
index e482f955..b7cfa710 100644
--- a/packages/cli/CHANGELOG.md
+++ b/packages/cli/CHANGELOG.md
@@ -1,15 +1,3 @@
-# v8.2.0 (Sun Dec 15 2019)
-
-#### 🐛  Bug Fix
-
-- release: add flag to publish prerelease  ([@hipstersmoothie](https://github.com/hipstersmoothie))
-
-#### Authors: 1
-
-- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
-
----
-
 # v8.0.0 (Wed Dec 11 2019)
 
 #### 🐛  Bug Fix
diff --git a/packages/cli/package.json b/packages/cli/package.json
index d6af5952..51f69839 100644
--- a/packages/cli/package.json
+++ b/packages/cli/package.json
@@ -2,7 +2,7 @@
   "name": "auto",
   "bin": "dist/bin/auto.js",
   "description": "CLI tools to help facilitate semantic versioning based on GitHub PR labels",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "author": {
     "name": "Andrew Lisowski",
     "email": "lisowski54@gmail.com"
diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md
index 915f28cd..60b33a98 100644
--- a/packages/core/CHANGELOG.md
+++ b/packages/core/CHANGELOG.md
@@ -1,16 +1,3 @@
-# v8.2.0 (Sun Dec 15 2019)
-
-#### 🐛  Bug Fix
-
-- fix and add tests  ([@hipstersmoothie](https://github.com/hipstersmoothie))
-- release: add flag to publish prerelease  ([@hipstersmoothie](https://github.com/hipstersmoothie))
-
-#### Authors: 1
-
-- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
-
----
-
 # v8.1.3 (Sat Dec 14 2019)
 
 #### 🐛  Bug Fix
diff --git a/packages/core/package.json b/packages/core/package.json
index ed580015..9bc3a0ca 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/core",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "description": "Node API for using auto.",
   "main": "dist/auto.js",
   "author": {
@@ -40,7 +40,7 @@
     "@octokit/plugin-enterprise-compatibility": "1.1.1",
     "@octokit/plugin-retry": "^2.2.0",
     "@octokit/plugin-throttling": "^2.6.0",
-    "@octokit/rest": "16.35.2",
+    "@octokit/rest": "16.35.0",
     "await-to-js": "^2.1.1",
     "cosmiconfig": "6.0.0",
     "deepmerge": "^4.0.0",
@@ -49,11 +49,11 @@
     "enquirer": "^2.3.0",
     "env-ci": "^4.1.1",
     "gitlog": "^3.1.2",
-    "https-proxy-agent": "^4.0.0",
+    "https-proxy-agent": "^3.0.0",
     "import-cwd": "^3.0.0",
     "lodash.chunk": "^4.2.0",
     "node-fetch": "2.6.0",
-    "semver": "^7.0.0",
+    "semver": "^6.0.0",
     "signale": "^1.4.0",
     "tapable": "^2.0.0-beta.2",
     "tinycolor2": "^1.4.1",
diff --git a/packages/core/src/auto.ts b/packages/core/src/auto.ts
index db47a547..e3a95b86 100644
--- a/packages/core/src/auto.ts
+++ b/packages/core/src/auto.ts
@@ -46,6 +46,7 @@ import loadPlugin, { IPlugin } from './utils/load-plugins';
 import createLog, { ILogger } from './utils/logger';
 import { makeHooks } from './utils/make-hooks';
 import { IAuthorOptions, IRepoOptions } from './auto-args';
+import { execSync } from 'child_process';
 
 const proxyUrl = process.env.https_proxy || process.env.http_proxy;
 const env = envCi();
@@ -180,6 +181,31 @@ export function determineNextVersion(
     : next;
 }
 
+/** Get the current branch the git repo is set to */
+export function getCurrentBranch() {
+  const isPR = 'isPr' in env && env.isPr;
+  let branch: string | undefined;
+  // env-ci sets branch to target branch (ex: master) in some CI services.
+  // so we should make sure we aren't in a PR just to be safe
+
+  if (isPR && 'prBranch' in env) {
+    branch = env.prBranch;
+  } else {
+    branch = env.branch;
+  }
+
+  if (!branch) {
+    try {
+      branch = execSync('git symbolic-ref --short HEAD', {
+        encoding: 'utf8',
+        stdio: 'ignore'
+      });
+    } catch (error) {}
+  }
+
+  return branch;
+}
+
 /**
  * The "auto" node API. Its public interface matches the
  * commands you can run from the CLI
@@ -294,6 +320,14 @@ export default class Auto {
     await init(options, this.logger);
   }
 
+  /** Determine if the repo is currently in a prerelease branch */
+  inPrereleaseBranch(): boolean {
+    const branch = getCurrentBranch();
+    const prereleaseBranches = this.config?.prereleaseBranches!;
+
+    return Boolean(branch && prereleaseBranches.includes(branch));
+  }
+
   /**
    * Create all of the user's labels on the git remote if the don't already exist
    *
@@ -829,9 +863,7 @@ export default class Auto {
     const head = await this.release.getCommitsInRelease('HEAD^');
     // env-ci sets branch to target branch (ex: master) in some CI services.
     // so we should make sure we aren't in a PR just to be safe
-    const currentBranch = isPR
-      ? 'prBranch' in env && env.prBranch
-      : 'branch' in env && env.branch;
+    const currentBranch = getCurrentBranch();
     const isBaseBrach = !isPR && currentBranch === this.baseBranch;
     const shouldGraduate =
       !options.onlyGraduateWithReleaseLabel ||
@@ -1069,7 +1101,11 @@ export default class Auto {
       throw this.createErrorMessage();
     }
 
-    let lastRelease = from || (await this.git.getLatestRelease());
+    const isPrerelease = prerelease || this.inPrereleaseBranch();
+    let lastRelease =
+      from ||
+      (isPrerelease && (await this.git.getPreviousTagInBranch())) ||
+      (await this.git.getLatestRelease());
 
     // Find base commit or latest release to generate the changelog to HEAD (new tag)
     this.logger.veryVerbose.info(`Using ${lastRelease} as previous release.`);
@@ -1091,10 +1127,12 @@ export default class Auto {
 
     this.logger.log.info(`Using release notes:\n${releaseNotes}`);
 
+    const latestTag = await this.git.getLatestTagInBranch();
     const rawVersion =
       useVersion ||
+      (isPrerelease && latestTag) ||
       (await this.getCurrentVersion(lastRelease)) ||
-      (await this.git.getLatestTagInBranch());
+      latestTag;
 
     if (!rawVersion) {
       this.logger.log.error('Could not calculate next version from last tag.');
@@ -1125,7 +1163,7 @@ export default class Auto {
       );
     } else {
       this.logger.log.info(`Releasing ${newVersion} to GitHub.`);
-      release = await this.git.publish(releaseNotes, newVersion, prerelease);
+      release = await this.git.publish(releaseNotes, newVersion, isPrerelease);
 
       await this.hooks.afterRelease.promise({
         lastRelease,
diff --git a/packages/core/src/git.ts b/packages/core/src/git.ts
index 8a52162d..2db44305 100644
--- a/packages/core/src/git.ts
+++ b/packages/core/src/git.ts
@@ -733,4 +733,14 @@ export default class Git {
   async getLatestTagInBranch() {
     return execPromise('git', ['describe', '--tags', '--abbrev=0']);
   }
+
+  /** Get the tag before latest in the git tree */
+  async getPreviousTagInBranch() {
+    return execPromise('git', [
+      'describe',
+      '--tags',
+      '--abbrev=0',
+      '$(git describe --tags --abbrev=0)^1'
+    ]);
+  }
 }
diff --git a/plugins/all-contributors/package.json b/plugins/all-contributors/package.json
index c91d0a10..01603b0c 100644
--- a/plugins/all-contributors/package.json
+++ b/plugins/all-contributors/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/all-contributors",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Automatically add contributors as changelogs are produced.",
   "author": {
diff --git a/plugins/chrome/package.json b/plugins/chrome/package.json
index 0d81c6fd..dbbf7dea 100644
--- a/plugins/chrome/package.json
+++ b/plugins/chrome/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/chrome",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Chrome publishing plugin for auto",
   "author": {
@@ -39,7 +39,7 @@
   "dependencies": {
     "@auto-it/core": "link:../../packages/core",
     "chrome-webstore-upload-cli": "^1.2.0",
-    "semver": "^7.0.0",
+    "semver": "^6.0.0",
     "tslib": "1.10.0"
   },
   "devDependencies": {
diff --git a/plugins/conventional-commits/package.json b/plugins/conventional-commits/package.json
index 131c96bc..cdef4db0 100644
--- a/plugins/conventional-commits/package.json
+++ b/plugins/conventional-commits/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/conventional-commits",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Conventional commit plugin for auto",
   "author": {
diff --git a/plugins/crates/package.json b/plugins/crates/package.json
index 0050ca66..ba3daced 100644
--- a/plugins/crates/package.json
+++ b/plugins/crates/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/crates",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Deploy Rust crates to crates.io",
   "author": {
@@ -39,7 +39,7 @@
   "dependencies": {
     "@auto-it/core": "link:../../packages/core",
     "env-ci": "^4.1.1",
-    "semver": "^7.0.0",
+    "semver": "^6.0.0",
     "toml": "^3.0.0",
     "tslib": "1.10.0",
     "user-home": "^2.0.0"
diff --git a/plugins/first-time-contributor/package.json b/plugins/first-time-contributor/package.json
index 3dafcf78..5c6854e6 100644
--- a/plugins/first-time-contributor/package.json
+++ b/plugins/first-time-contributor/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/first-time-contributor",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Thank first time contributors for their work right in your release notes.",
   "author": {
diff --git a/plugins/git-tag/package.json b/plugins/git-tag/package.json
index 5d36b479..6b89b0a8 100644
--- a/plugins/git-tag/package.json
+++ b/plugins/git-tag/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/git-tag",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Manage your projects version through just a git tag",
   "author": {
@@ -36,7 +36,7 @@
   },
   "dependencies": {
     "@auto-it/core": "link:../../packages/core",
-    "semver": "^7.0.0",
+    "semver": "^6.0.0",
     "tslib": "1.10.0"
   },
   "devDependencies": {
diff --git a/plugins/git-tag/src/index.ts b/plugins/git-tag/src/index.ts
index e03bec93..538255d2 100644
--- a/plugins/git-tag/src/index.ts
+++ b/plugins/git-tag/src/index.ts
@@ -2,13 +2,10 @@ import {
   Auto,
   determineNextVersion,
   execPromise,
-  IPlugin
+  IPlugin,
+  getCurrentBranch
 } from '@auto-it/core';
 import { inc, ReleaseType } from 'semver';
-import { execSync } from 'child_process';
-
-/** When the next hook is running branch is also the tag to publish under (ex: next, beta) */
-const branch = execSync('git symbolic-ref --short HEAD', { encoding: 'utf8' });
 
 /** Manage your projects version through just a git tag. */
 export default class GitTagPlugin implements IPlugin {
@@ -55,6 +52,7 @@ export default class GitTagPlugin implements IPlugin {
       }
 
       const prereleaseBranches = auto.config?.prereleaseBranches!;
+      const branch = getCurrentBranch() || '';
       const prereleaseBranch = prereleaseBranches.includes(branch)
         ? branch
         : prereleaseBranches[0];
diff --git a/plugins/jira/package.json b/plugins/jira/package.json
index 0b540372..50f7a4f9 100644
--- a/plugins/jira/package.json
+++ b/plugins/jira/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/jira",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Jira plugin for auto",
   "author": {
diff --git a/plugins/maven/package.json b/plugins/maven/package.json
index 6a45747b..d991ddf2 100644
--- a/plugins/maven/package.json
+++ b/plugins/maven/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/maven",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Maven publishing plugin for auto",
   "author": {
@@ -40,7 +40,7 @@
     "@auto-it/core": "link:../../packages/core",
     "parse-github-url": "^1.0.2",
     "pom-parser": "^1.1.1",
-    "semver": "^7.0.0",
+    "semver": "^6.0.0",
     "tslib": "1.10.0",
     "xml2js-es6-promise": "^1.1.1"
   }
diff --git a/plugins/npm/package.json b/plugins/npm/package.json
index de12076f..b8aa2eff 100644
--- a/plugins/npm/package.json
+++ b/plugins/npm/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/npm",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "NPM publishing plugin for auto",
   "author": {
@@ -43,7 +43,7 @@
     "parse-author": "^2.0.0",
     "parse-github-url": "1.0.2",
     "registry-url": "^5.1.0",
-    "semver": "^7.0.0",
+    "semver": "^6.0.0",
     "tslib": "1.10.0",
     "typescript-memoize": "^1.0.0-alpha.3",
     "url-join": "^4.0.0",
diff --git a/plugins/npm/src/index.ts b/plugins/npm/src/index.ts
index 5e9b2fed..2b9f62a7 100644
--- a/plugins/npm/src/index.ts
+++ b/plugins/npm/src/index.ts
@@ -1,6 +1,5 @@
 import envCi from 'env-ci';
 import * as fs from 'fs';
-import { execSync } from 'child_process';
 import parseAuthor from 'parse-author';
 import path from 'path';
 import { Memoize as memoize } from 'typescript-memoize';
@@ -8,6 +7,7 @@ import { Memoize as memoize } from 'typescript-memoize';
 import {
   Auto,
   determineNextVersion,
+  getCurrentBranch,
   execPromise,
   ILogger,
   IPlugin,
@@ -21,18 +21,6 @@ import setTokenOnCI from './set-npm-token';
 import { loadPackageJson, readFile, writeFile } from './utils';
 
 const { isCi } = envCi();
-/** When the next hook is running branch is also the tag to publish under (ex: next, beta) */
-let branch: string;
-
-try {
-  branch = execSync('git symbolic-ref --short HEAD', {
-    encoding: 'utf8',
-    stdio: 'ignore'
-  });
-} catch (error) {
-  branch = '';
-}
-
 const VERSION_COMMIT_MESSAGE = '"Bump version to: %s [skip ci]"';
 
 /** Check if the project is a monorepo */
@@ -364,11 +352,13 @@ export default class NPMPlugin implements IPlugin {
       auto.logger.logLevel === 'veryVerbose';
     const verboseArgs = isVerbose ? verbose : [];
     const prereleaseBranches = auto.config?.prereleaseBranches!;
+    const branch = getCurrentBranch();
     // if ran from master we publish the prerelease to the first
     // configured prerelease branch
-    const prereleaseBranch = prereleaseBranches.includes(branch)
-      ? branch
-      : prereleaseBranches[0];
+    const prereleaseBranch =
+      branch && prereleaseBranches.includes(branch)
+        ? branch
+        : prereleaseBranches[0];
 
     auto.hooks.beforeShipIt.tap(this.name, async () => {
       if (!isCi) {
diff --git a/plugins/omit-commits/package.json b/plugins/omit-commits/package.json
index 3ceb6f8f..92c666b6 100644
--- a/plugins/omit-commits/package.json
+++ b/plugins/omit-commits/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/omit-commits",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Omit commits plugin for auto",
   "author": {
diff --git a/plugins/omit-release-notes/package.json b/plugins/omit-release-notes/package.json
index a5f74715..bd8fdf63 100644
--- a/plugins/omit-release-notes/package.json
+++ b/plugins/omit-release-notes/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/omit-release-notes",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Omit release notes plugin for auto",
   "author": {
diff --git a/plugins/released/package.json b/plugins/released/package.json
index abe60464..d2026ab0 100644
--- a/plugins/released/package.json
+++ b/plugins/released/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/released",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Released plugin for auto. Comments with version + extra",
   "author": {
diff --git a/plugins/s3/package.json b/plugins/s3/package.json
index a7aeec45..d58e1693 100644
--- a/plugins/s3/package.json
+++ b/plugins/s3/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/s3",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Post your built artifacts to s3",
   "author": {
diff --git a/plugins/slack/package.json b/plugins/slack/package.json
index 30fa5867..f1471e72 100644
--- a/plugins/slack/package.json
+++ b/plugins/slack/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/slack",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Slack plugin for auto",
   "author": {
diff --git a/plugins/twitter/package.json b/plugins/twitter/package.json
index da18fe09..e310a3cb 100644
--- a/plugins/twitter/package.json
+++ b/plugins/twitter/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/twitter",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Twitter plugin for auto",
   "author": {
@@ -40,7 +40,7 @@
     "@auto-it/core": "link:../../packages/core",
     "@types/twitter-text": "^2.0.0",
     "endent": "^1.3.0",
-    "semver": "^7.0.0",
+    "semver": "^6.0.0",
     "tslib": "1.10.0",
     "tweet-tweet": "^1.0.4",
     "twitter-text": "^3.0.0"
diff --git a/plugins/upload-assets/package.json b/plugins/upload-assets/package.json
index ca9e56aa..cde25ee2 100644
--- a/plugins/upload-assets/package.json
+++ b/plugins/upload-assets/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@auto-it/upload-assets",
-  "version": "8.2.0",
+  "version": "8.1.3",
   "main": "dist/index.js",
   "description": "Upload assets plugin for auto",
   "author": {
diff --git a/yarn.lock b/yarn.lock
index db5c3c6d..2a9a4fb5 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -8,13 +8,13 @@
   integrity sha512-m2OzlTDbhvzK4hgswH9Lx0cdpq1AntXu53Klz5RGkFfuoDvKsnlU7tmtVfNWtUiP0zZbGtrb/BZYH7aB6TRnMA==
 
 "@auto-it/core@link:packages/core":
-  version "8.2.0"
+  version "7.17.0"
   dependencies:
     "@octokit/graphql" "^4.0.0"
     "@octokit/plugin-enterprise-compatibility" "1.1.1"
     "@octokit/plugin-retry" "^2.2.0"
     "@octokit/plugin-throttling" "^2.6.0"
-    "@octokit/rest" "16.35.2"
+    "@octokit/rest" "16.35.0"
     await-to-js "^2.1.1"
     cosmiconfig "6.0.0"
     deepmerge "^4.0.0"
@@ -23,11 +23,11 @@
     enquirer "^2.3.0"
     env-ci "^4.1.1"
     gitlog "^3.1.2"
-    https-proxy-agent "^4.0.0"
+    https-proxy-agent "^3.0.0"
     import-cwd "^3.0.0"
     lodash.chunk "^4.2.0"
     node-fetch "2.6.0"
-    semver "^7.0.0"
+    semver "^6.0.0"
     signale "^1.4.0"
     tapable "^2.0.0-beta.2"
     tinycolor2 "^1.4.1"
@@ -36,7 +36,7 @@
     url-join "^4.0.0"
 
 "@auto-it/npm@link:plugins/npm":
-  version "8.2.0"
+  version "7.17.0"
   dependencies:
     "@auto-it/core" "link:packages/core"
     env-ci "^4.1.1"
@@ -44,14 +44,14 @@
     parse-author "^2.0.0"
     parse-github-url "1.0.2"
     registry-url "^5.1.0"
-    semver "^7.0.0"
+    semver "^6.0.0"
     tslib "1.10.0"
     typescript-memoize "^1.0.0-alpha.3"
     url-join "^4.0.0"
     user-home "^2.0.0"
 
 "@auto-it/released@link:plugins/released":
-  version "8.2.0"
+  version "7.17.0"
   dependencies:
     "@auto-it/core" "link:packages/core"
     deepmerge "^4.0.0"
@@ -2168,10 +2168,10 @@
     once "^1.4.0"
     universal-user-agent "^4.0.0"
 
-"@octokit/rest@16.35.2", "@octokit/rest@^16.28.1", "@octokit/rest@^16.28.4":
-  version "16.35.2"
-  resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.35.2.tgz#0098c9e2a895d4afb0fa6578479283553543143c"
-  integrity sha512-iijaNZpn9hBpUdh8YdXqNiWazmq4R1vCUsmxpBB0kCQ0asHZpCx+HNs22eiHuwYKRhO31ZSAGBJLi0c+3XHaKQ==
+"@octokit/rest@16.35.0", "@octokit/rest@^16.28.1", "@octokit/rest@^16.28.4":
+  version "16.35.0"
+  resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.35.0.tgz#7ccc1f802f407d5b8eb21768c6deca44e7b4c0d8"
+  integrity sha512-9ShFqYWo0CLoGYhA1FdtdykJuMzS/9H6vSbbQWDX4pWr4p9v+15MsH/wpd/3fIU+tSxylaNO48+PIHqOkBRx3w==
   dependencies:
     "@octokit/request" "^5.2.0"
     "@octokit/request-error" "^1.0.2"
@@ -2396,9 +2396,9 @@
     "@types/node" "*"
 
 "@types/node@*", "@types/node@>= 8", "@types/node@^12.0.0", "@types/node@^12.11.1":
-  version "12.12.18"
-  resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.18.tgz#8d16634797d63c2af5bc647ce879f8de20b56469"
-  integrity sha512-DBkZuIMFuAfjJHiunyRc+aNvmXYNwV1IPMgGKGlwCp6zh6MKrVtmvjSWK/axWcD25KJffkXgkfvFra8ndenXAw==
+  version "12.12.15"
+  resolved "https://registry.yarnpkg.com/@types/node/-/node-12.12.15.tgz#8dfb6ce22fedd469128137640a3aa8f17415422f"
+  integrity sha512-Pv+vWicyFd07Hw/SmNnTUguqrHgDfMtjabvD9sQyxeqbpCEg8CmViLBaVPHtNsoBgZECrRf5/pgV6FJIBrGSjw==
 
 "@types/node@^10.11.7":
   version "10.14.6"
@@ -2505,17 +2505,17 @@
     "@types/yargs-parser" "*"
 
 "@typescript-eslint/eslint-plugin@^2.7.0":
-  version "2.11.0"
-  resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.11.0.tgz#4477c33491ccf0a9a3f4a30ef84978fa0ea0cad2"
-  integrity sha512-G2HHA1vpMN0EEbUuWubiCCfd0R3a30BB+UdvnFkxwZIxYEGOrWEXDv8tBFO9f44CWc47Xv9lLM3VSn4ORLI2bA==
+  version "2.10.0"
+  resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz#c4cb103275e555e8a7e9b3d14c5951eb6d431e70"
+  integrity sha512-rT51fNLW0u3fnDGnAHVC5nu+Das+y2CpW10yqvf6/j5xbuUV3FxA3mBaIbM24CXODXjbgUznNb4Kg9XZOUxKAw==
   dependencies:
-    "@typescript-eslint/experimental-utils" "2.11.0"
+    "@typescript-eslint/experimental-utils" "2.10.0"
     eslint-utils "^1.4.3"
     functional-red-black-tree "^1.0.1"
     regexpp "^3.0.0"
     tsutils "^3.17.1"
 
-"@typescript-eslint/experimental-utils@2.10.0":
+"@typescript-eslint/experimental-utils@2.10.0", "@typescript-eslint/experimental-utils@^2.5.0":
   version "2.10.0"
   resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.10.0.tgz#8db1656cdfd3d9dcbdbf360b8274dea76f0b2c2c"
   integrity sha512-FZhWq6hWWZBP76aZ7bkrfzTMP31CCefVIImrwP3giPLcoXocmLTmr92NLZxuIcTL4GTEOE33jQMWy9PwelL+yQ==
@@ -2524,15 +2524,6 @@
     "@typescript-eslint/typescript-estree" "2.10.0"
     eslint-scope "^5.0.0"
 
-"@typescript-eslint/experimental-utils@2.11.0", "@typescript-eslint/experimental-utils@^2.5.0":
-  version "2.11.0"
-  resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-2.11.0.tgz#cef18e6b122706c65248a5d8984a9779ed1e52ac"
-  integrity sha512-YxcA/y0ZJaCc/fB/MClhcDxHI0nOBB7v2/WxBju2cOTanX7jO9ttQq6Fy4yW9UaY5bPd9xL3cun3lDVqk67sPQ==
-  dependencies:
-    "@types/json-schema" "^7.0.3"
-    "@typescript-eslint/typescript-estree" "2.11.0"
-    eslint-scope "^5.0.0"
-
 "@typescript-eslint/experimental-utils@^1.13.0":
   version "1.13.0"
   resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-1.13.0.tgz#b08c60d780c0067de2fb44b04b432f540138301e"
@@ -2543,13 +2534,13 @@
     eslint-scope "^4.0.0"
 
 "@typescript-eslint/parser@^2.7.0":
-  version "2.11.0"
-  resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.11.0.tgz#cdcc3be73ee31cbef089af5ff97ccaa380ef6e8b"
-  integrity sha512-DyGXeqhb3moMioEFZIHIp7oXBBh7dEfPTzGrlyP0Mi9ScCra4SWEGs3kPd18mG7Sy9Wy8z88zmrw5tSGL6r/6A==
+  version "2.10.0"
+  resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-2.10.0.tgz#24b2e48384ab6d5a6121e4c4faf8892c79657ad3"
+  integrity sha512-wQNiBokcP5ZsTuB+i4BlmVWq6o+oAhd8en2eSm/EE9m7BgZUIfEeYFd6z3S+T7bgNuloeiHA1/cevvbBDLr98g==
   dependencies:
     "@types/eslint-visitor-keys" "^1.0.0"
-    "@typescript-eslint/experimental-utils" "2.11.0"
-    "@typescript-eslint/typescript-estree" "2.11.0"
+    "@typescript-eslint/experimental-utils" "2.10.0"
+    "@typescript-eslint/typescript-estree" "2.10.0"
     eslint-visitor-keys "^1.1.0"
 
 "@typescript-eslint/typescript-estree@1.13.0":
@@ -2573,19 +2564,6 @@
     semver "^6.3.0"
     tsutils "^3.17.1"
 
-"@typescript-eslint/typescript-estree@2.11.0":
-  version "2.11.0"
-  resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-2.11.0.tgz#21ada6504274cd1644855926312c798fc697e9fb"
-  integrity sha512-HGY4+d4MagO6cKMcKfIKaTMxcAv7dEVnji2Zi+vi5VV8uWAM631KjAB5GxFcexMYrwKT0EekRiiGK1/Sd7VFGA==
-  dependencies:
-    debug "^4.1.1"
-    eslint-visitor-keys "^1.1.0"
-    glob "^7.1.6"
-    is-glob "^4.0.1"
-    lodash.unescape "4.0.1"
-    semver "^6.3.0"
-    tsutils "^3.17.1"
-
 "@webassemblyjs/ast@1.8.5":
   version "1.8.5"
   resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.8.5.tgz#51b1c5fe6576a34953bf4b253df9f0d490d9e359"
@@ -2862,18 +2840,13 @@ acorn@^7.1.0:
   resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.0.tgz#949d36f2c292535da602283586c2477c57eb2d6c"
   integrity sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==
 
-agent-base@4, agent-base@^4.1.0:
+agent-base@4, agent-base@^4.1.0, agent-base@^4.3.0:
   version "4.3.0"
   resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee"
   integrity sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==
   dependencies:
     es6-promisify "^5.0.0"
 
-agent-base@5:
-  version "5.1.1"
-  resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-5.1.1.tgz#e8fb3f242959db44d63be665db7a8e739537a32c"
-  integrity sha512-TMeqbNl2fMW0nMjTEPOwe3J/PRFP4vqeoNuQMG0HlMrtm5QxKqdvAkZ1pRBQ/ulIyDD5Yq0nJ7YbdD8ey0TO3g==
-
 agent-base@~4.2.1:
   version "4.2.1"
   resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.2.1.tgz#d89e5999f797875674c07d87f260fc41e83e8ca9"
@@ -3183,12 +3156,12 @@ array.prototype.flat@^1.2.1:
     function-bind "^1.1.1"
 
 array.prototype.flatmap@^1.2.2:
-  version "1.2.3"
-  resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.3.tgz#1c13f84a178566042dd63de4414440db9222e443"
-  integrity sha512-OOEk+lkePcg+ODXIpvuU9PAryCikCJyo7GlDG1upleEpQRx6mzL9puEBkozQ5iAx20KV0l3DbyQwqciJtqe5Pg==
+  version "1.2.2"
+  resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.2.tgz#28d621d351c19a62b84331b01669395ef6cef4c4"
+  integrity sha512-ZZtPLE74KNE+0XcPv/vQmcivxN+8FhwOLvt2udHauO0aDEpsXDQrmd5HuJGpgPVyaV8HvkDPWnJ2iaem0oCKtA==
   dependencies:
     define-properties "^1.1.3"
-    es-abstract "^1.17.0-next.1"
+    es-abstract "^1.15.0"
     function-bind "^1.1.1"
 
 arrify@^1.0.1:
@@ -5237,13 +5210,6 @@ debug@3.1.0, debug@~3.1.0:
   dependencies:
     ms "2.0.0"
 
-debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1:
-  version "4.1.1"
-  resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
-  integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
-  dependencies:
-    ms "^2.1.1"
-
 debug@^3.1.0, debug@^3.2.6:
   version "3.2.6"
   resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b"
@@ -5251,6 +5217,13 @@ debug@^3.1.0, debug@^3.2.6:
   dependencies:
     ms "^2.1.1"
 
+debug@^4.0.1, debug@^4.1.0, debug@^4.1.1:
+  version "4.1.1"
+  resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
+  integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
+  dependencies:
+    ms "^2.1.1"
+
 debuglog@^1.0.1:
   version "1.0.1"
   resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
@@ -5850,7 +5823,19 @@ error-stack-parser@^2.0.0, error-stack-parser@^2.0.1:
   dependencies:
     stackframe "^1.0.4"
 
-es-abstract@^1.11.0, es-abstract@^1.12.0, es-abstract@^1.15.0, es-abstract@^1.5.0, es-abstract@^1.5.1, es-abstract@^1.7.0:
+es-abstract@^1.11.0, es-abstract@^1.12.0, es-abstract@^1.5.0, es-abstract@^1.7.0:
+  version "1.13.0"
+  resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.13.0.tgz#ac86145fdd5099d8dd49558ccba2eaf9b88e24e9"
+  integrity sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==
+  dependencies:
+    es-to-primitive "^1.2.0"
+    function-bind "^1.1.1"
+    has "^1.0.3"
+    is-callable "^1.1.4"
+    is-regex "^1.0.4"
+    object-keys "^1.0.12"
+
+es-abstract@^1.15.0:
   version "1.15.0"
   resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.15.0.tgz#8884928ec7e40a79e3c9bc812d37d10c8b24cc57"
   integrity sha512-bhkEqWJ2t2lMeaJDuk7okMkJWI/yqgH/EoGwpcvv0XW9RWQsRspI4wt6xuyuvMvvQE3gg/D9HXppgk21w78GyQ==
@@ -5866,24 +5851,18 @@ es-abstract@^1.11.0, es-abstract@^1.12.0, es-abstract@^1.15.0, es-abstract@^1.5.
     string.prototype.trimleft "^2.1.0"
     string.prototype.trimright "^2.1.0"
 
-es-abstract@^1.17.0-next.1:
-  version "1.17.0-next.1"
-  resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.0-next.1.tgz#94acc93e20b05a6e96dacb5ab2f1cb3a81fc2172"
-  integrity sha512-7MmGr03N7Rnuid6+wyhD9sHNE2n4tFSwExnU2lQl3lIo2ShXWGePY80zYaoMOmILWv57H0amMjZGHNzzGG70Rw==
+es-abstract@^1.5.1:
+  version "1.12.0"
+  resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165"
+  integrity sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==
   dependencies:
-    es-to-primitive "^1.2.1"
+    es-to-primitive "^1.1.1"
     function-bind "^1.1.1"
-    has "^1.0.3"
-    has-symbols "^1.0.1"
-    is-callable "^1.1.4"
+    has "^1.0.1"
+    is-callable "^1.1.3"
     is-regex "^1.0.4"
-    object-inspect "^1.7.0"
-    object-keys "^1.1.1"
-    object.assign "^4.1.0"
-    string.prototype.trimleft "^2.1.0"
-    string.prototype.trimright "^2.1.0"
 
-es-to-primitive@^1.2.0:
+es-to-primitive@^1.1.1, es-to-primitive@^1.2.0:
   version "1.2.0"
   resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377"
   integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==
@@ -5892,15 +5871,6 @@ es-to-primitive@^1.2.0:
     is-date-object "^1.0.1"
     is-symbol "^1.0.2"
 
-es-to-primitive@^1.2.1:
-  version "1.2.1"
-  resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a"
-  integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==
-  dependencies:
-    is-callable "^1.1.4"
-    is-date-object "^1.0.1"
-    is-symbol "^1.0.2"
-
 es5-ext@^0.10.35, es5-ext@^0.10.9, es5-ext@~0.10.14:
   version "0.10.50"
   resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.50.tgz#6d0e23a0abdb27018e5ac4fd09b412bc5517a778"
@@ -6097,9 +6067,9 @@ eslint-plugin-jsx-a11y@^6.2.1:
     jsx-ast-utils "^2.2.1"
 
 eslint-plugin-prettier@^3.1.1:
-  version "3.1.2"
-  resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.2.tgz#432e5a667666ab84ce72f945c72f77d996a5c9ba"
-  integrity sha512-GlolCC9y3XZfv3RQfwGew7NnuFDKsfI4lbvRK+PIIo23SFH+LemGs4cKwzAaRa+Mdb+lQO/STaIayno8T5sJJA==
+  version "3.1.1"
+  resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.1.1.tgz#507b8562410d02a03f0ddc949c616f877852f2ba"
+  integrity sha512-A+TZuHZ0KU0cnn56/9mfR7/KjUJ9QNVXUhwvRFSR7PGPe0zQR6PTkmyqg1AtUUEOzTqeRsUwyKFh0oVZKVCrtA==
   dependencies:
     prettier-linter-helpers "^1.0.0"
 
@@ -7542,11 +7512,6 @@ has-symbols@^1.0.0:
   resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44"
   integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=
 
-has-symbols@^1.0.1:
-  version "1.0.1"
-  resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8"
-  integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==
-
 has-to-string-tag-x@^1.2.0:
   version "1.4.1"
   resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d"
@@ -7784,13 +7749,13 @@ https-proxy-agent@^2.2.1:
     agent-base "^4.1.0"
     debug "^3.1.0"
 
-https-proxy-agent@^4.0.0:
-  version "4.0.0"
-  resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-4.0.0.tgz#702b71fb5520a132a66de1f67541d9e62154d82b"
-  integrity sha512-zoDhWrkR3of1l9QAL8/scJZyLu8j/gBkcwcaQOZh7Gyh/+uJQzGVETdgT30akuwkpL8HTRfssqI3BZuV18teDg==
+https-proxy-agent@^3.0.0:
+  version "3.0.1"
+  resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-3.0.1.tgz#b8c286433e87602311b01c8ea34413d856a4af81"
+  integrity sha512-+ML2Rbh6DAuee7d07tYGEKOEi2voWPUGan+ExdPbPW6Z3svq+JCqr0v8WmKPOkz1vOVykPCBSuobe7G8GJUtVg==
   dependencies:
-    agent-base "5"
-    debug "4"
+    agent-base "^4.3.0"
+    debug "^3.1.0"
 
 human-signals@^1.1.1:
   version "1.1.1"
@@ -11086,11 +11051,6 @@ object-inspect@^1.6.0, object-inspect@~1.6.0:
   resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b"
   integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==
 
-object-inspect@^1.7.0:
-  version "1.7.0"
-  resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67"
-  integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw==
-
 object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1:
   version "1.1.1"
   resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
@@ -11907,9 +11867,9 @@ pkg-fetch@^2.6.4:
     unique-temp-dir "^1.0.0"
 
 pkg@^4.4.0:
-  version "4.4.2"
-  resolved "https://registry.yarnpkg.com/pkg/-/pkg-4.4.2.tgz#c9c5bf13501d33df5cad02397a14f0bbf48aac15"
-  integrity sha512-FEFX43fzHVyEl7fBTTaKxjN3OsWowNfcDGO7+NaxfUsMTMvy8aQX6DscjgoTNnbOehObRK/UqMUGKXt3mvnArg==
+  version "4.4.1"
+  resolved "https://registry.yarnpkg.com/pkg/-/pkg-4.4.1.tgz#16790b2ab13485000f650b1f3fdfa5412af09f27"
+  integrity sha512-dT+wOFIwWIxuUbc5lxzGffZHEyMllf9b32l0RQTb5m/sIsU2qzBKQewHIgVDKcdOJGx2R/+dMdBbrup4UKTlJA==
   dependencies:
     "@babel/parser" "^7.7.5"
     "@babel/runtime" "^7.7.5"
@@ -13484,11 +13444,6 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0:
   resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
   integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==
 
-semver@^7.0.0:
-  version "7.0.0"
-  resolved "https://registry.yarnpkg.com/semver/-/semver-7.0.0.tgz#5f3ca35761e47e05b206c6daff2cf814f0316b8e"
-  integrity sha512-+GB6zVA9LWh6zovYQLALHwv5rb2PHGlJi3lfiqIHxR0uuwCgefcOJc59v9fv1w8GbStwxuuqqAjI9NMAOOgq1A==
-
 semver@~5.3.0:
   version "5.3.0"
   resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"


Test patch:
diff --git a/packages/core/src/__tests__/auto.test.ts b/packages/core/src/__tests__/auto.test.ts
index 8d9a3b59..6c0df098 100644
--- a/packages/core/src/__tests__/auto.test.ts
+++ b/packages/core/src/__tests__/auto.test.ts
@@ -851,7 +851,10 @@ describe('Auto', () => {
       const auto = new Auto({ ...defaults, plugins: [] });
       auto.logger = dummyLog();
       await auto.loadConfig();
-      auto.git!.getLatestRelease = () => Promise.resolve('1.2.3');
+
+      auto.git!.getPreviousTagInBranch = () => Promise.resolve('1.2.3');
+      auto.git!.getLatestTagInBranch = () => Promise.resolve('1.2.4');
+
       jest.spyOn(auto.git!, 'publish').mockImplementation();
       jest
         .spyOn(auto.release!, 'generateReleaseNotes')