-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathrelease.config.js
More file actions
61 lines (57 loc) · 2.7 KB
/
release.config.js
File metadata and controls
61 lines (57 loc) · 2.7 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
module.exports = {
branches: [
"master",
{ name: "develop", prerelease: true }
],
tagFormat: "${version}",
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'angular',
},
],
[
"@semantic-release/release-notes-generator",
{
preset: 'angular',
writerOpts: {
finalizeContext (context) {
const scopesToInclude = ['cli', 'desktop', 'operator'];
for (const commitGroup of context.commitGroups) {
const filteredCommits = []
for (const commit of commitGroup.commits) {
if (commit.scope && commit.scope.split(',').some(scope => scopesToInclude.includes(scope))) {
filteredCommits.push(commit)
}
}
commitGroup.commits = filteredCommits
}
return context
},
},
},
],
"@semantic-release/changelog",
[
'@semantic-release/github',
{
assets: [
{ path: "CHANGELOG.md", label: "Changelog" },
{ path: "release-desktop-macos-latest/latest-mac.yml", label: "macOS Latest YML" },
{ path: "release-desktop-macos-latest/sentry-client-macos.dmg.blockmap", label: "macOS Blockmap" },
{ path: "release-desktop-macos-latest/sentry-client-macos.dmg", label: "macOS DMG" },
{ path: "release-desktop-ubuntu-latest/latest-linux.yml", label: "Linux Latest YML" },
{ path: "release-desktop-ubuntu-latest/sentry-client-linux.AppImage", label: "Linux AppImage" },
{ path: "release-signed-desktop-windows-latest/latest.yml", label: "Windows Latest YML" },
{ path: "release-signed-desktop-windows-latest/sentry-client-windows.exe.blockmap", label: "Windows Blockmap" },
{ path: "release-signed-desktop-windows-latest/signed-builds/sentry-client-windows.exe", label: "Windows EXE" },
{ path: "release-cli-ubuntu-latest/sentry-node-cli-macos.zip", label: "CLI macOS ZIP" },
{ path: "release-cli-ubuntu-latest/sentry-node-cli-linux.zip", label: "CLI Linux ZIP" },
{ path: "release-cli-ubuntu-latest/sentry-node-cli-windows.zip", label: "CLI Windows ZIP" },
],
},
],
"@semantic-release/git",
],
};