-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.releaserc.js
73 lines (71 loc) · 1.63 KB
/
.releaserc.js
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
// @ts-check
const plugins = [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
verifyReleaseCmd: "echo ${nextRelease.version} > .VERSION",
},
],
process.env.DRY_RUN === "true"
? null
: [
"@semantic-release-plus/docker",
{
name: process.env.IMAGE_NAME?.toLowerCase() || "tsp-web",
registry: process.env.REGISTRY || "ghcr.io",
},
],
process.env.DRY_RUN === "true"
? null
: [
"@semantic-release/github",
{
assets: [
// Windows
{
path: "tsp-web.exe",
label: "TSP Web (windows/amd64)",
},
// Linux
{
path: "tsp-web_linux_amd64",
label: "TSP Web (linux/amd64)",
},
{
path: "tsp-web_linux_arm64",
label: "TSP Web (linux/arm64)",
},
{
path: "tsp-web_linux_armv5",
label: "TSP Web (linux/armv5)",
},
{
path: "tsp-web_linux_armv7",
label: "TSP Web (linux/armv7)",
},
// Mac
{
path: "tsp-web_darwin_arm64",
label: "TSP Web (darwin/arm64)",
},
{
path: "tsp-web_darwin_amd64",
label: "TSP Web (darwin/amd64)",
},
],
},
],
].filter(Boolean);
module.exports = {
branches: [
"+([0-9])?(.{+([0-9]),x}).x",
"master",
"next",
"next-major",
{ name: "beta", prerelease: true },
{ name: "alpha", prerelease: true },
],
plugins,
};