-
Notifications
You must be signed in to change notification settings - Fork 123
/
.releaserc
94 lines (94 loc) · 3.13 KB
/
.releaserc
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
{
"prepare": [
"@semantic-release/npm",
{
"//": "build the linux, macos, and windows binaries",
"path": "@semantic-release/exec",
"cmd": "npm run prepare && rm ./dist/client-templates/github && npx --yes pkg . --compress Brotli -t node18-linux-x64,node18-macos-x64,node18-win-x64"
},
{
"//": "shasum linux binaries",
"path": "@semantic-release/exec",
"cmd": "cat binary-releases/snyk-broker-linux | npx hasha-cli -a sha256 > binary-releases/snyk-broker-linux.sha256"
},
{
"//": "shasum macos binaries",
"path": "@semantic-release/exec",
"cmd": "cat binary-releases/snyk-broker-macos | npx hasha-cli -a sha256 > binary-releases/snyk-broker-macos.sha256"
},
{
"//": "shasum windows binaries",
"path": "@semantic-release/exec",
"cmd": "cat binary-releases/snyk-broker-win.exe | npx hasha-cli -a sha256 > binary-releases/snyk-broker-win.exe.sha256"
},
{
"//": "generate Cyclone DX JSON SBOM",
"path": "@semantic-release/exec",
"cmd": "mkdir -p sboms && npx snyk sbom --format cyclonedx1.4+json > sboms/broker.sbom.cyclonedx.json"
},
{
"//": "generate Cyclone DX XML SBOM",
"path": "@semantic-release/exec",
"cmd": "mkdir -p sboms && npx snyk sbom --format cyclonedx1.4+xml > sboms/broker.sbom.cyclonedx.xml"
},
{
"//": "generate SPDX SBOM",
"path": "@semantic-release/exec",
"cmd": "mkdir -p sboms && npx snyk sbom --format spdx2.3+json > sboms/broker.sbom.spdx.json"
}
],
"publish": [
"@semantic-release/npm",
{
"path": "@semantic-release/github",
"assets": [
{
"path": "binary-releases/snyk-broker-linux",
"name": "snyk-broker-linux",
"label": "snyk-broker-linux"
},
{
"path": "binary-releases/snyk-broker-linux.sha256",
"name": "snyk-broker-linux.sha256",
"label": "snyk-broker-linux.sha256"
},
{
"path": "binary-releases/snyk-broker-macos",
"name": "snyk-broker-macos",
"label": "snyk-broker-macos"
},
{
"path": "binary-releases/snyk-broker-macos.sha256",
"name": "snyk-broker-macos.sha256",
"label": "snyk-broker-macos.sha256"
},
{
"path": "binary-releases/snyk-broker-win.exe",
"name": "snyk-broker-win.exe",
"label": "snyk-broker-win.exe"
},
{
"path": "binary-releases/snyk-broker-win.exe.sha256",
"name": "snyk-broker-win.exe.sha256",
"label": "snyk-broker-win.exe.sha256"
},
{
"path": "sboms/broker.sbom.cyclonedx.json",
"name": "broker.sbom.cyclonedx.json",
"label": "broker.sbom.cyclonedx.json"
},
{
"path": "sboms/broker.sbom.cyclonedx.xml",
"name": "broker.sbom.cyclonedx.xml",
"label": "broker.sbom.cyclonedx.xml"
},
{
"path": "sboms/broker.sbom.spdx.json",
"name": "broker.sbom.spdx.json",
"label": "broker.sbom.spdx.json"
}
]
}
],
"branches": ["master"]
}