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
91
92
93
94
95
/**
* @type {import("semantic-release").GlobalConfig}
*/
module.exports = {
branches: [
// Regular releases to the default distribution channel from the branch
{
name: "main",
channel: false,
},
// Regular releases to a distribution channel matching the branch name from any
// existing branch with a name matching a maintenance release range (N.N.x or
// N.x.x or N.x with N being a number)
{
name: "+([0-9])?(.{+([0-9]),x}).x",
},
// Regular releases to the next distribution channel from the branch next if it exists
{
name: "next",
},
// Pre-releases to the beta distribution channel from the branch beta if it exists
{
name: "beta",
prerelease: true,
},
// Pre-releases to the alpha distribution channel from the branch alpha if it exists
{
name: "alpha",
prerelease: true,
},
],
repositoryUrl: "git@github.com:ebalo55/crabby.git",
plugins: [
[
"@semantic-release/commit-analyzer",
{
releaseRules: [
{
type: "(docs|style|chore|refactor|revert)",
release: "patch",
},
{
type: "refactor",
scope: "core-*",
release: "minor",
},
{
scope: "no-release",
release: false,
},
],
},
],
[
"@semantic-release/release-notes-generator",
{
preset: "angular",
writerOpts: {
commitsSort: [
"subject",
"scope",
],
},
},
],
[
"@semantic-release/exec",
{
"prepareCmd": "cargo build --release --target x86_64-unknown-linux-gnu --target x86_64-pc-windows-gnu",
}
],
[
"@semantic-release/github",
{
"assets": [
{"path": "target/x86_64-unknown-linux-gnu/release/crabby", "label": "Crabby Linux binary"},
{"path": "target/x86_64-pc-windows-gnu/release/crabby.exe", "label": "Crabby Windows binary"},
]
}
],
[
"semantic-release-cargo",
{
"allFeatures": true,
"check": true,
"publishArgs": ["--locked", "--target", "x86_64-unknown-linux-gnu", "--target", "x86_64-pc-windows-gnu"]
}
]
],
preset: "angular",
};