-
Notifications
You must be signed in to change notification settings - Fork 8
/
.releaserc
76 lines (76 loc) · 2.23 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
{
"prepare": [
"@semantic-release/npm",
{
"//": "adds a file to identify a build as a standalone binary",
"path": "@semantic-release/exec",
"cmd": "echo '' > dist/STANDALONE"
},
{
"//": "build the macos",
"path": "@semantic-release/exec",
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t mac-x64-10.21.0 -o snyk2spdx-macos"
},
{
"//": "build the linux",
"path": "@semantic-release/exec",
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t linux-x64-12.16.2 -o snyk2spdx-linux"
},
{
"//": "build the windows binaries",
"path": "@semantic-release/exec",
"cmd": "npx [email protected] dist/index.js -r './dist/**/*.js' -t windows-x64-10.16.0 -o snyk2spdx-win.exe"
},
{
"//": "shasum all binaries",
"path": "@semantic-release/exec",
"cmd": "shasum -a 256 snyk2spdx-linux > snyk2spdx-linux.sha256 && shasum -a 256 snyk2spdx-macos > snyk2spdx-macos.sha256 && shasum -a 256 snyk2spdx-win.exe > snyk2spdx-win.exe.sha256"
},
{
"//": "removes the file we use to identify a build as a standalone binary",
"path": "@semantic-release/exec",
"cmd": "rm dist/STANDALONE"
}
],
"publish": [
"@semantic-release/npm",
{
"path": "@semantic-release/github",
"assets": [
{
"path": "./snyk2spdx-linux",
"name": "snyk2spdx-linux",
"label": "snyk2spdx-linux"
},
{
"path": "./snyk2spdx-linux.sha256",
"name": "snyk2spdx-linux.sha256",
"label": "snyk2spdx-linux.sha256"
},
{
"path": "./snyk2spdx-macos",
"name": "snyk2spdx-macos",
"label": "snyk2spdx-macos"
},
{
"path": "./snyk2spdx-macos.sha256",
"name": "snyk2spdx-macos.sha256",
"label": "snyk2spdx-macos.sha256"
},
{
"path": "./snyk2spdx-win.exe",
"name": "snyk2spdx-win.exe",
"label": "snyk2spdx-win.exe"
},
{
"path": "./snyk2spdx-win.exe.sha256",
"name": "snyk2spdx-win.exe.sha256",
"label": "snyk2spdx-win.exe.sha256"
}
]
}
],
"branches": [
"main"
]
}