1 | module.exports = {
|
---|
2 | // Add logging for releases until we are fully confident of the release solution.
|
---|
3 | debug: true,
|
---|
4 | branches: 'master',
|
---|
5 | verifyConditions: [
|
---|
6 | '@semantic-release/changelog',
|
---|
7 | '@semantic-release/npm',
|
---|
8 | '@semantic-release/github'
|
---|
9 | ],
|
---|
10 | prepare: [
|
---|
11 | './tools/update-contributors',
|
---|
12 | '@semantic-release/changelog',
|
---|
13 | '@semantic-release/npm',
|
---|
14 | '@semantic-release/git'
|
---|
15 | ],
|
---|
16 | publish: [
|
---|
17 | '@semantic-release/npm',
|
---|
18 | '@semantic-release/github'
|
---|
19 | ],
|
---|
20 | success: [
|
---|
21 | '@semantic-release/github',
|
---|
22 | './tools/update-docs'
|
---|
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 | }
|
---|