Skip to content
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
strategy:
matrix:
node-version:
- 20.8.1
- 20
- 21
- 22.14.0
- 22
- 24
os:
- ubuntu-latest
- macos-latest
Expand All @@ -37,6 +37,7 @@ jobs:
node-version: "${{ matrix.node-version }}"
cache: npm
- run: npm clean-install
- run: corepack npm audit signatures
- run: npm test

test_dev:
Expand Down
14 changes: 7 additions & 7 deletions README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions lib/load-parser-config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
import importFrom from "import-from-esm";
import conventionalChangelogAngular from "conventional-changelog-angular";
import conventionalChangelogConventionalcommits from "conventional-changelog-conventionalcommits";

/**
* Load `conventional-changelog-parser` options. Handle presets that return either a `Promise<Array>` or a `Promise<Function>`.
*
* @param {Object} pluginConfig The plugin configuration.
* @param {Object} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint')
* @param {Object} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint', 'conventionalcommits')
* @param {String} pluginConfig.config Requireable npm package with a custom conventional-changelog preset
* @param {Object} pluginConfig.parserOpts Additional `conventional-changelog-parser` options that will overwrite ones loaded by `preset` or `config`.
* @param {Object} context The semantic-release context.
Expand All @@ -27,7 +27,7 @@ export default async ({ preset, config, parserOpts, presetConfig }, { cwd }) =>
} else if (config) {
loadedConfig = await ((await importFrom.silent(__dirname, config)) || (await importFrom(cwd, config)))();
} else {
loadedConfig = await conventionalChangelogAngular();
loadedConfig = await conventionalChangelogConventionalcommits();
}

return { ...loadedConfig.parser, ...parserOpts };
Expand Down
Loading