fix(release): add repositoryUrl and hide docs/chore from release notes, and linkReferences flag to ensure commit links are always generated

This commit is contained in:
neon
2026-05-13 20:24:07 +00:00
parent 455ee63b21
commit 4fb157cc3b
+29 -27
View File
@@ -2,47 +2,49 @@
/** @type {import('semantic-release').GlobalConfig} */
module.exports = {
branches: ['main'],
tagFormat: 'v${version}',
branches: ["main"],
tagFormat: "v${version}",
repositoryUrl: "https://github.com/bookorbit/bookorbit",
plugins: [
[
'@semantic-release/commit-analyzer',
"@semantic-release/commit-analyzer",
{
preset: 'conventionalcommits',
preset: "conventionalcommits",
releaseRules: [
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'security', release: 'patch' },
{ type: 'perf', release: 'patch' },
{ type: 'db', release: 'patch' },
{ type: 'revert', release: 'patch' },
{ breaking: true, release: 'major' },
{ type: "feat", release: "minor" },
{ type: "fix", release: "patch" },
{ type: "security", release: "patch" },
{ type: "perf", release: "patch" },
{ type: "db", release: "patch" },
{ type: "revert", release: "patch" },
{ breaking: true, release: "major" },
],
},
],
[
'@semantic-release/release-notes-generator',
"@semantic-release/release-notes-generator",
{
preset: 'conventionalcommits',
preset: "conventionalcommits",
linkReferences: true,
presetConfig: {
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'security', section: 'Security' },
{ type: 'perf', section: 'Performance' },
{ type: 'db', section: 'Database' },
{ type: 'revert', section: 'Reverts' },
{ type: 'docs', section: 'Documentation', hidden: false },
{ type: 'chore', hidden: true },
{ type: 'refactor', hidden: true },
{ type: 'style', hidden: true },
{ type: 'test', hidden: true },
{ type: 'build', hidden: true },
{ type: 'ci', hidden: true },
{ type: "feat", section: "Features" },
{ type: "fix", section: "Bug Fixes" },
{ type: "security", section: "Security" },
{ type: "perf", section: "Performance" },
{ type: "db", section: "Database" },
{ type: "revert", section: "Reverts" },
{ type: "docs", hidden: true },
{ type: "chore", hidden: true },
{ type: "refactor", hidden: true },
{ type: "style", hidden: true },
{ type: "test", hidden: true },
{ type: "build", hidden: true },
{ type: "ci", hidden: true },
],
},
},
],
'@semantic-release/github',
"@semantic-release/github",
],
};