function checkVersions(done) {
  const releaseDir = 'dist/plugins';
  exitIfNoReleaseDir(releaseDir, done);

  // Check version numbers that would be created.
  console.log(
    'Running lerna version.',
    'These version numbers will not be pushed and no tags will be created,',
    'even if you answer yes to the prompt.',
  );
  execSync(
    `lerna version --conventional-commits --no-git-tag-version --no-push`,
    {cwd: releaseDir, stdio: 'inherit'},
  );

  done();
}
Runs lerna version to check which version numbers would be updated.
The version numbers will not be pushed and no tags or releases will
be created, even if you answer 'yes' to the prompt.
@param {Function} done Completed callback.