1 | module.exports = {
|
2 | branches: 'master',
|
3 | verifyConditions: [
|
4 | '@semantic-release/changelog',
|
5 | '@semantic-release/github',
|
6 | '@semantic-release/npm'
|
7 | ],
|
8 | prepare: [
|
9 | './tools/update-contributors',
|
10 | '@semantic-release/changelog',
|
11 | '@semantic-release/git',
|
12 | '@semantic-release/npm'
|
13 | ],
|
14 | publish: [
|
15 | '@semantic-release/github',
|
16 | '@semantic-release/npm'
|
17 | ],
|
18 | success: [
|
19 | '@semantic-release/github'
|
20 | ],
|
21 | fail: [
|
22 | '@semantic-release/github'
|
23 | ],
|
24 |
|
25 | // The release rules determine what kind of release should be triggered
|
26 | // based on the information included in the commit message. The default
|
27 | // rules used by semantic-release are the same, but they are set explicitly
|
28 | // for better visibility.
|
29 | // See https://github.com/semantic-release/commit-analyzer/blob/master/lib/default-release-rules.js
|
30 | releaseRules: [
|
31 | { breaking: true, release: 'major' },
|
32 | { revert: true, release: 'patch' },
|
33 | { type: 'feat', release: 'minor' },
|
34 | { type: 'fix', release: 'patch' },
|
35 | { type: 'perf', release: 'patch' }
|
36 | ],
|
37 |
|
38 | // The preset determines which commits are included in the changelog and how
|
39 | // the changelog is formatted. The default value used by semantic-release is
|
40 | // the same, but it is set explicitly for visibility.
|
41 | // See https://semantic-release.gitbook.io/semantic-release/#commit-message-format
|
42 | // See https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular
|
43 | preset: 'angular'
|
44 | }
|