Repository navigation
Expand file tree
/
Copy path.releaserc.js
More file actions
90 lines (88 loc) · 1.94 KB
/
Copy path.releaserc.js
File metadata and controls
90 lines (88 loc) · 1.94 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import writerOpts from './tools/semantic-release/writer-opts.js';
import { commitTypes, releaseRules } from './tools/semantic-release/config.js';
const skipCommits = process.env.SKIP_COMMIT === 'true';
export default {
tagFormat: '${version}',
branches: [
{
name: 'release/+([0-9])?(.{+([0-9]),x}).x',
range: "${name.replace(/^release\\//g, '')}",
channel: "${name.replace(/^release\\//g, '')}"
},
'main',
{
name: 'next',
channel: 'next',
prerelease: 'rc'
}
],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'angular',
releaseRules,
parserOpts: {
noteKeywords: ['BREAKING CHANGE']
},
presetConfig: {
types: commitTypes
}
}
],
[
'@semantic-release/release-notes-generator',
{
preset: 'angular',
parserOpts: {
noteKeywords: ['BREAKING CHANGE', 'NOTE', 'DEPRECATED']
},
writerOpts
}
],
...(skipCommits ? [] : ['@semantic-release/changelog']),
// Packages to be pushed
[
'@semantic-release/npm',
{
pkgRoot: 'dist/ngx-datatable'
}
],
// Only update remaining package.json that are not directly published
[
'@semantic-release/npm',
{
pkgRoot: 'projects/ngx-datatable',
npmPublish: false
}
],
[
'@semantic-release/npm',
{
npmPublish: false
}
],
...(skipCommits
? []
: [
[
'@semantic-release/git',
{
assets: [
'CHANGELOG.md',
'package.json',
'package-lock.json',
'projects/*/package.json'
],
message: 'chore(release): ${nextRelease.version}'
}
]
]),
[
'@semantic-release/github',
{
successComment: false
}
]
]
};