-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
changelog.config.ts
56 lines (54 loc) · 1.57 KB
/
changelog.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { ChangelogConfig } from 'changelogen'
function getDefaultConfig(): ChangelogConfig {
return {
types: {
feat: { title: '🚀 Enhancements', semver: 'minor' },
perf: { title: '🔥 Performance', semver: 'patch' },
fix: { title: '🩹 Fixes', semver: 'patch' },
refactor: { title: '💅 Refactors', semver: 'patch' },
docs: { title: '📖 Documentation', semver: 'patch' },
build: { title: '📦 Build', semver: 'patch' },
types: { title: '🌊 Types', semver: 'patch' },
chore: { title: '🏡 Chore' },
examples: { title: '🏀 Examples' },
test: { title: '✅ Tests' },
style: { title: '🎨 Styles' },
ci: { title: '🤖 CI' },
},
cwd: process.cwd(),
from: '',
to: '',
output: 'CHANGELOG.md',
scopeMap: {},
tokens: {
github:
process.env.CHANGELOGEN_TOKENS_GITHUB || process.env.GITHUB_TOKEN || process.env.GH_TOKEN,
},
publish: {
private: false,
tag: 'latest',
args: [],
},
templates: {
commitMessage: 'chore(release): v{{newVersion}}',
tagMessage: 'v{{newVersion}}',
tagBody: 'v{{newVersion}}',
},
excludeAuthors: [],
}
}
export const config = {
...getDefaultConfig(),
output: 'CHANGELOG.md',
repo: {
provider: 'github',
repo: 'LouisMazel/maz-ui',
domain: 'github.com',
token: process.env.GITHUB_TOKEN,
},
templates: {
commitMessage: 'chore(release): update changelog for v{{newVersion}}',
tagMessage: '{{newVersion}}',
tagBody: '{{newVersion}}',
},
} satisfies ChangelogConfig