mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 08:21:39 -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} */
|
/** @type {import('semantic-release').GlobalConfig} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
branches: ['main'],
|
branches: ["main"],
|
||||||
tagFormat: 'v${version}',
|
tagFormat: "v${version}",
|
||||||
|
repositoryUrl: "https://github.com/bookorbit/bookorbit",
|
||||||
plugins: [
|
plugins: [
|
||||||
[
|
[
|
||||||
'@semantic-release/commit-analyzer',
|
"@semantic-release/commit-analyzer",
|
||||||
{
|
{
|
||||||
preset: 'conventionalcommits',
|
preset: "conventionalcommits",
|
||||||
releaseRules: [
|
releaseRules: [
|
||||||
{ type: 'feat', release: 'minor' },
|
{ type: "feat", release: "minor" },
|
||||||
{ type: 'fix', release: 'patch' },
|
{ type: "fix", release: "patch" },
|
||||||
{ type: 'security', release: 'patch' },
|
{ type: "security", release: "patch" },
|
||||||
{ type: 'perf', release: 'patch' },
|
{ type: "perf", release: "patch" },
|
||||||
{ type: 'db', release: 'patch' },
|
{ type: "db", release: "patch" },
|
||||||
{ type: 'revert', release: 'patch' },
|
{ type: "revert", release: "patch" },
|
||||||
{ breaking: true, release: 'major' },
|
{ breaking: true, release: "major" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'@semantic-release/release-notes-generator',
|
"@semantic-release/release-notes-generator",
|
||||||
{
|
{
|
||||||
preset: 'conventionalcommits',
|
preset: "conventionalcommits",
|
||||||
|
linkReferences: true,
|
||||||
presetConfig: {
|
presetConfig: {
|
||||||
types: [
|
types: [
|
||||||
{ type: 'feat', section: 'Features' },
|
{ type: "feat", section: "Features" },
|
||||||
{ type: 'fix', section: 'Bug Fixes' },
|
{ type: "fix", section: "Bug Fixes" },
|
||||||
{ type: 'security', section: 'Security' },
|
{ type: "security", section: "Security" },
|
||||||
{ type: 'perf', section: 'Performance' },
|
{ type: "perf", section: "Performance" },
|
||||||
{ type: 'db', section: 'Database' },
|
{ type: "db", section: "Database" },
|
||||||
{ type: 'revert', section: 'Reverts' },
|
{ type: "revert", section: "Reverts" },
|
||||||
{ type: 'docs', section: 'Documentation', hidden: false },
|
{ type: "docs", hidden: true },
|
||||||
{ type: 'chore', hidden: true },
|
{ type: "chore", hidden: true },
|
||||||
{ type: 'refactor', hidden: true },
|
{ type: "refactor", hidden: true },
|
||||||
{ type: 'style', hidden: true },
|
{ type: "style", hidden: true },
|
||||||
{ type: 'test', hidden: true },
|
{ type: "test", hidden: true },
|
||||||
{ type: 'build', hidden: true },
|
{ type: "build", hidden: true },
|
||||||
{ type: 'ci', hidden: true },
|
{ type: "ci", hidden: true },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'@semantic-release/github',
|
"@semantic-release/github",
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user