autorel 2.2.2 → 2.2.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.
- package/dist/semver.js +1 -1
- package/package.json +1 -1
package/dist/semver.js
CHANGED
|
@@ -38,7 +38,7 @@ function incrementVersion(lastProductionTag, lastTag, releaseType, prereleaseCha
|
|
|
38
38
|
throw new Error('lastProductionTag is not a valid semver tag');
|
|
39
39
|
const { major: prodMajor, minor: prodMinor, patch: prodPatch } = lastProductionVersion;
|
|
40
40
|
// some sanity checks
|
|
41
|
-
const lastVersionLessThanLastProdError = '
|
|
41
|
+
const lastVersionLessThanLastProdError = 'The current version cannot be less than the last production version (following SemVer).\n\nTo fix this, we recommend using the --useVersion flag to specify the version you want to use.';
|
|
42
42
|
if (major < prodMajor)
|
|
43
43
|
throw new Error(lastVersionLessThanLastProdError);
|
|
44
44
|
if (major === prodMajor && minor < prodMinor)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autorel",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3",
|
|
4
4
|
"description": "Automate semantic releases based on conventional commits. Similar to semantic-release but much simpler.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc H. Weiner <mhweiner234@gmail.com> (https://mhweiner.com)",
|