release-it 15.10.2 → 15.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +7 -6
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -77,16 +77,17 @@ const runTasks = async (opts, di) => {
77
77
  const action = config.isIncrement ? 'release' : 'update';
78
78
  const suffix = version && config.isIncrement ? `${latestVersion}...${version}` : `currently at ${latestVersion}`;
79
79
 
80
- if (!config.isReleaseVersion && !config.isChangelog) {
81
- log.obtrusive(`🚀 Let's ${action} ${name} (${suffix})`);
82
-
83
- log.preview({ title: 'changelog', text: changelog });
84
- }
85
-
86
80
  if (config.isIncrement) {
87
81
  version = version || (await reduceUntil(plugins, plugin => plugin.getIncrementedVersion(incrementBase)));
88
82
  }
89
83
 
84
+ if (!version) {
85
+ log.obtrusive(`No new version to release`);
86
+ } else if (!config.isReleaseVersion && !config.isChangelog) {
87
+ log.obtrusive(`🚀 Let's ${action} ${name} (${suffix})`);
88
+ log.preview({ title: 'changelog', text: changelog });
89
+ }
90
+
90
91
  if (config.isReleaseVersion) {
91
92
  console.log(version);
92
93
  process.exit(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-it",
3
- "version": "15.10.2",
3
+ "version": "15.10.3",
4
4
  "description": "Generic CLI tool to automate versioning and package publishing-related tasks.",
5
5
  "keywords": [
6
6
  "build",