Skip to content

Commit

Permalink
[Release] try using angular generally (#444)
Browse files Browse the repository at this point in the history
Followup to #441 

## What changed? Why?
I don't know why conventional changelogs are so tough but this _should_
enable the parser to really work by moving the config inside the release
package, I think.
  • Loading branch information
dgattey authored Feb 2, 2024
1 parent 9a1c6a2 commit b7fc936
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .releaserc

This file was deleted.

48 changes: 48 additions & 0 deletions packages/release/release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const preset = 'angular';

/**
* @type {import('semantic-release').GlobalConfig}
*/
module.exports = {
branches: ['main'],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset,
releaseRules: [
{
message: '*breaking*',
release: 'major',
},
{
tag: 'feat',
release: 'minor',
},
{
message: '*feat*',
release: 'minor',
},
{
message: '**',
release: 'patch',
},
{
header: '**',
release: 'patch',
},
],
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'BREAKING CHANGES'],
},
},
],
[
'@semantic-release/release-notes-generator',
{
preset,
},
],
'@semantic-release/github',
],
};

0 comments on commit b7fc936

Please sign in to comment.