commit-and-tag-version 12.4.3 → 12.4.4
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/CHANGELOG.md +7 -0
- package/lib/lifecycles/bump.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [12.4.4](https://github.com/absolute-version/commit-and-tag-version/compare/v12.4.3...v12.4.4) (2024-09-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* sanitize double quotes result from stdout ([#186](https://github.com/absolute-version/commit-and-tag-version/issues/186)) ([8dbeb79](https://github.com/absolute-version/commit-and-tag-version/commit/8dbeb794b960c6ea27527353ad2c55884f48b469))
|
|
11
|
+
|
|
5
12
|
## [12.4.3](https://github.com/absolute-version/commit-and-tag-version/compare/v12.4.2...v12.4.3) (2024-09-09)
|
|
6
13
|
|
|
7
14
|
|
package/lib/lifecycles/bump.js
CHANGED
|
@@ -13,6 +13,7 @@ const semver = require('semver');
|
|
|
13
13
|
const writeFile = require('../write-file');
|
|
14
14
|
const { resolveUpdaterObjectFromArgument } = require('../updaters');
|
|
15
15
|
let configsToUpdate = {};
|
|
16
|
+
const sanitizeQuotesRegex = /['"]+/g;
|
|
16
17
|
|
|
17
18
|
async function Bump(args, version) {
|
|
18
19
|
// reset the cache of updated config files each
|
|
@@ -37,7 +38,7 @@ async function Bump(args, version) {
|
|
|
37
38
|
await runLifecycleScript(args, 'prerelease');
|
|
38
39
|
const stdout = await runLifecycleScript(args, 'prebump');
|
|
39
40
|
if (stdout?.trim().length) {
|
|
40
|
-
const prebumpString = stdout.trim();
|
|
41
|
+
const prebumpString = stdout.trim().replace(sanitizeQuotesRegex, '');
|
|
41
42
|
if (semver.valid(prebumpString)) args.releaseAs = prebumpString;
|
|
42
43
|
}
|
|
43
44
|
if (!args.firstRelease) {
|