mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
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:
+29
-27
@@ -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",
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user