-
Notifications
You must be signed in to change notification settings - Fork 2
/
release.config.js
45 lines (43 loc) · 1.25 KB
/
release.config.js
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
/* eslint-disable @typescript-eslint/no-var-requires */
const readFileSync = require('fs').readFileSync;
const resolve = require(`path`).resolve;
module.exports = {
generateNotes: {
preset: 'angular',
writerOpts: {
mainTemplate: readFileSync(
resolve(__dirname, '.release-notes-templates/template.hbs'),
'utf-8',
),
headerPartial: readFileSync(
resolve(__dirname, '.release-notes-templates/header.hbs'),
'utf-8',
),
commitPartial: readFileSync(
resolve(__dirname, '.release-notes-templates/commit.hbs'),
'utf-8',
),
footerPartial: readFileSync(
resolve(__dirname, '.release-notes-templates/footer.hbs'),
'utf-8',
),
},
},
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
['@semantic-release/changelog', { changelogTitle: '# Releases' }],
'@semantic-release/npm',
[
'@semantic-release/git',
{
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
/* eslint-disable */
message:
'chore(release): ${nextRelease.version}\n\n${nextRelease.notes}',
/* eslint-enable */
},
],
'@semantic-release/github',
],
};