Skip to content

Commit 244eab9

Browse files
authored
Merge pull request #18 from andrewmolyuk/fix-release
Fix release
2 parents b783f69 + 710246d commit 244eab9

File tree

4 files changed

+27
-11
lines changed

4 files changed

+27
-11
lines changed

.releaserc.cjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Minimal semantic-release configuration to filter merge commits from generated
2+
// release notes. This customizes the release-notes writer transform only.
3+
// It returns null for merge commits so they are excluded from notes.
4+
module.exports = {
5+
branches: ['main'],
6+
plugins: [
7+
['@semantic-release/commit-analyzer', { preset: 'conventionalcommits' }],
8+
[
9+
'@semantic-release/release-notes-generator',
10+
{
11+
preset: 'conventionalcommits',
12+
writerOpts: {
13+
transform(commit) {
14+
if (commit && commit.header && typeof commit.header === 'string') {
15+
if (commit.header.startsWith('Merge pull request')) return null
16+
}
17+
return commit
18+
},
19+
},
20+
},
21+
],
22+
'@semantic-release/npm',
23+
'@semantic-release/github',
24+
],
25+
}

.releaserc.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@
3030
"workbench.colorTheme": "Visual Studio Dark",
3131
"workbench.layoutControl.enabled": false,
3232
// Spell check settings
33-
"cSpell.words": ["Codacy", "elif", "Molyuk", "vitest"]
33+
"cSpell.words": ["Codacy", "elif", "Molyuk", "releaserc", "vitest"]
3434
}

eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import prettierPluginRecommended from 'eslint-plugin-prettier/recommended'
44
import tseslint from 'typescript-eslint'
55

66
export default [
7-
{ ignores: ['node_modules/**', 'dist/**', '.git/**', '**/*.d.ts'] },
7+
{ ignores: ['node_modules/**', 'dist/**', '.git/**', '**/*.d.ts', '.releaserc.cjs'] },
88
// Base recommended configuration
99
eslint.configs.recommended,
1010

0 commit comments

Comments
 (0)