-
Notifications
You must be signed in to change notification settings - Fork 40
/
.releaserc
89 lines (89 loc) · 2.7 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
{
"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": "npm run pkg-binaries:macos"
},
{
"//": "build the linux",
"path": "@semantic-release/exec",
"cmd": "npm run pkg-binaries:linux"
},
{
"//": "build the alpine",
"path": "@semantic-release/exec",
"cmd": "npm run pkg-binaries:alpine"
},
{
"//": "build the windows binaries",
"path": "@semantic-release/exec",
"cmd": "npm run pkg-binaries:windows"
},
{
"//": "shasum all binaries",
"path": "@semantic-release/exec",
"cmd": "shasum -a 256 snyk-api-import-linux > snyk-api-import-linux.sha256 && shasum -a 256 snyk-api-import-macos > snyk-api-import-macos.sha256 && shasum -a 256 snyk-api-import-win.exe > snyk-api-import-win.exe.sha256 && shasum -a 256 snyk-api-import-alpine > snyk-api-import-alpine.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-api-import-linux",
"name": "snyk-api-import-linux",
"label": "snyk-api-import-linux"
},
{
"path": "./snyk-api-import-linux.sha256",
"name": "snyk-api-import-linux.sha256",
"label": "snyk-api-import-linux.sha256"
},
{
"path": "./snyk-api-import-alpine",
"name": "snyk-api-import-alpine",
"label": "snyk-api-import-alpine"
},
{
"path": "./snyk-api-import-alpine.sha256",
"name": "snyk-api-import-alpine.sha256",
"label": "snyk-api-import-alpine.sha256"
},
{
"path": "./snyk-api-import-macos",
"name": "snyk-api-import-macos",
"label": "snyk-api-import-macos"
},
{
"path": "./snyk-api-import-macos.sha256",
"name": "snyk-api-import-macos.sha256",
"label": "snyk-api-import-macos.sha256"
},
{
"path": "./snyk-api-import-win.exe",
"name": "snyk-api-import-win.exe",
"label": "snyk-api-import-win.exe"
},
{
"path": "./snyk-api-import-win.exe.sha256",
"name": "snyk-api-import-win.exe.sha256",
"label": "snyk-api-import-win.exe.sha256"
}
]
}
],
"branches": ["master"]
}