-
Notifications
You must be signed in to change notification settings - Fork 21
/
.releaserc
64 lines (64 loc) · 1.87 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
{
"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 alpine, macos, linux and windows binaries",
"path": "@semantic-release/exec",
"cmd": "npx pkg . -t node12-linux-x64,node12-macos-x64,node12-win-x64"
},
{
"//": "shasum all binaries",
"path": "@semantic-release/exec",
"cmd": "shasum -a 256 snyk-delta-linux > snyk-delta-linux.sha256 && shasum -a 256 snyk-delta-macos > snyk-delta-macos.sha256 && shasum -a 256 snyk-delta-win.exe > snyk-delta-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": "./snyk-delta-linux",
"name": "snyk-delta-linux",
"label": "snyk-delta-linux"
},
{
"path": "./snyk-delta-linux.sha256",
"name": "snyk-delta-linux.sha256",
"label": "snyk-delta-linux.sha256"
},
{
"path": "./snyk-delta-macos",
"name": "snyk-delta-macos",
"label": "snyk-delta-macos"
},
{
"path": "./snyk-delta-macos.sha256",
"name": "snyk-delta-macos.sha256",
"label": "snyk-delta-macos.sha256"
},
{
"path": "./snyk-delta-win.exe",
"name": "snyk-delta-win.exe",
"label": "snyk-delta-win.exe"
},
{
"path": "./snyk-delta-win.exe.sha256",
"name": "snyk-delta-win.exe.sha256",
"label": "snyk-delta-win.exe.sha256"
}
]
}
],
"branches": ["master"]
}