Skip to content

Commit 48b6300

Browse files
committed
Merge branch 'master' of github.com:absolute-version/commit-and-tag-version into bump-openapi-version-support
2 parents 4ec68c0 + 7a5b806 commit 48b6300

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
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.
44

5+
## [12.3.0](https://github.com/absolute-version/commit-and-tag-version/compare/v12.2.0...v12.3.0) (2024-04-19)
6+
7+
8+
### Features
9+
10+
* **updater:** add YAML support ([#137](https://github.com/absolute-version/commit-and-tag-version/issues/137)) ([b9dccc2](https://github.com/absolute-version/commit-and-tag-version/commit/b9dccc23ec05e4026899c676f3275d4dedf8c686))
11+
12+
13+
### Bug Fixes
14+
15+
* Add debug messages for exclusions during bump lifecycle ([#131](https://github.com/absolute-version/commit-and-tag-version/issues/131)) ([a9191f2](https://github.com/absolute-version/commit-and-tag-version/commit/a9191f293eb9302afb1093ad37e9fa076f6b37a2))
16+
517
## [12.2.0](https://github.com/absolute-version/commit-and-tag-version/compare/v12.1.0...v12.2.0) (2024-01-15)
618

719

lib/lifecycles/bump.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,20 @@ function updateConfigs(args, newVersion) {
222222
}
223223
const configPath = path.resolve(process.cwd(), updater.filename);
224224
try {
225-
if (dotgit.ignore(updater.filename)) return;
225+
if (dotgit.ignore(updater.filename)) {
226+
console.debug(
227+
`Not updating file '${updater.filename}', as it is ignored in Git`,
228+
);
229+
return;
230+
}
226231
const stat = fs.lstatSync(configPath);
227232

228-
if (!stat.isFile()) return;
233+
if (!stat.isFile()) {
234+
console.debug(
235+
`Not updating '${updater.filename}', as it is not a file`,
236+
);
237+
return;
238+
}
229239
const contents = fs.readFileSync(configPath, 'utf8');
230240
const newContents = updater.updater.writeVersion(contents, newVersion);
231241
const realNewVersion = updater.updater.readVersion(newContents);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commit-and-tag-version",
3-
"version": "12.2.0",
3+
"version": "12.3.0",
44
"description": "replacement for `npm version` with automatic CHANGELOG generation",
55
"bin": "bin/cli.js",
66
"scripts": {

0 commit comments

Comments
 (0)