From 994ca4832ca5a2270c55afd4c4d50756175a6a68 Mon Sep 17 00:00:00 2001 From: Benjamin Halko Date: Tue, 30 Jan 2024 10:53:13 -0800 Subject: [PATCH] Update .releaserc.js --- .releaserc.js | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.releaserc.js b/.releaserc.js index ca0844a75c..77f72d0d9d 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -18,21 +18,23 @@ module.exports = { [ "@semantic-release/release-notes-generator", { - presetConfig: { - types: [ - { type: "feat", section: "Features" }, - { type: "fix", section: "Bug Fixes" }, - { type: "docs", section: "Documentation" }, - { type: "style", section: "Styles" }, - { type: "refactor", section: "Code Refactoring" }, - { type: "perf", section: "Performance Improvements" }, - { type: "test", section: "Tests" }, - { type: "build", section: "Builds" }, - { type: "ci", section: "Continuous Integration" }, - { type: "chore", section: "Chores" }, - { type: "revert", section: "Reverts" }, - ], + "preset": "conventionalcommits", + parserOpts: { + headerCorrespondence: ['type','scope','subject'], }, + writerOpts: { + commitPartial: "* {{subject}} ([{{author.name}}]({{~@root.host}}/{{~@root.owner}}/{{~@root.repository}}/commit/{{hash}}))\n", + mainTemplate: ` +{{#each commitGroups}} +{{#if title}} +## {{title}} +{{/if}} +{{#each commits}} +{{> commit root=@root}} +{{/each}} +{{/each}} + ` + } } ], [