diff --git a/CHANGELOG.md b/CHANGELOG.md index c85b5d598..feeff9ca8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ 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. +## [12.4.1](https://github.com/absolute-version/commit-and-tag-version/compare/v12.4.0...v12.4.1) (2024-04-28) + + +### Bug Fixes + +* raise the 'openapi'-updater to a higher order of precedence above the 'yaml'-updater ([#143](https://github.com/absolute-version/commit-and-tag-version/issues/143)) ([37fe178](https://github.com/absolute-version/commit-and-tag-version/commit/37fe178fdba051c665414565fe4b0e61336aff18)) + ## [12.4.0](https://github.com/absolute-version/commit-and-tag-version/compare/v12.3.0...v12.4.0) (2024-04-19) diff --git a/README.md b/README.md index dceec3b8f..eaa655de5 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ _Having problems? Want to contribute? Join us on the [node-tooling community Sla - [Maven Support (Java/Kotlin)](#maven-support-javakotlin) - [Gradle Support (Java/Kotlin)](#gradle-support-javakotlin) - [.NET Support](#net-support) + - [YAML Support](#yaml-support) - [OpenAPI Support](#openapi-support) - [Installing `commit-and-tag-version`](#installing-commit-and-tag-version) - [As a local `npm run` script](#as-a-local-npm-run-script) diff --git a/lib/updaters/index.js b/lib/updaters/index.js index 683381f94..47296e3d1 100644 --- a/lib/updaters/index.js +++ b/lib/updaters/index.js @@ -35,12 +35,12 @@ function getUpdaterByFilename(filename) { if (filename.endsWith('.csproj')) { return getUpdaterByType('csproj'); } - if (/\.ya?ml$/.test(filename)) { - return getUpdaterByType('yaml'); - } if (/openapi.yaml/.test(filename)) { return getUpdaterByType('openapi'); } + if (/\.ya?ml$/.test(filename)) { + return getUpdaterByType('yaml'); + } throw Error( `Unsupported file (${filename}) provided for bumping.\n Please specify the updater \`type\` or use a custom \`updater\`.`, ); diff --git a/package-lock.json b/package-lock.json index b24277ffb..e55de8074 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "commit-and-tag-version", - "version": "12.4.0", + "version": "12.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "commit-and-tag-version", - "version": "12.4.0", + "version": "12.4.1", "license": "ISC", "dependencies": { "chalk": "^2.4.2", diff --git a/package.json b/package.json index 09fcd7142..70843c036 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "commit-and-tag-version", - "version": "12.4.0", + "version": "12.4.1", "description": "replacement for `npm version` with automatic CHANGELOG generation", "bin": "bin/cli.js", "scripts": {