forked from fabric8-analytics/fabric8-analytics-lsp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.config.js
63 lines (63 loc) · 1.78 KB
/
release.config.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
module.exports = {
prepare: [
"@semantic-release/npm",
{
// build the Linux executable
"path": "@semantic-release/exec",
"cmd": "pkg . -t node12-linux-x64 -o analytics-lsp-linux"
},
{
// build the macOS executable
"path": "@semantic-release/exec",
"cmd": "pkg . -t node12-macos-x64 -o analytics-lsp-macos"
},
{
// build the windows executable
"path": "@semantic-release/exec",
"cmd": "pkg . -t node12-win-x64 -o analytics-lsp-win.exe"
},
{
// shasum
"path": "@semantic-release/exec",
"cmd": "shasum -a 256 analytics-lsp-linux > analytics-lsp-linux.sha256 && shasum -a 256 analytics-lsp-macos > analytics-lsp-macos.sha256 && shasum -a 256 analytics-lsp-win.exe > analytics-lsp-win.sha256"
},
],
publish: [
{
path: "@semantic-release/github",
assets: [
{
path: "analytics-lsp-linux",
name: "analytics-lsp-linux",
label: "analytics-lsp-linux"
},
{
path: "analytics-lsp-macos",
name: "analytics-lsp-macos",
label: "analytics-lsp-macos"
},
{
path: "analytics-lsp-win.exe",
name: "analytics-lsp-win.exe",
label: "analytics-lsp-win.exe"
},
{
path: "analytics-lsp-linux.sha256",
name: "analytics-lsp-linux.sha256",
label: "analytics-lsp-linux.sha256"
},
{
path: "analytics-lsp-macos.sha256",
name: "analytics-lsp-macos.sha256",
label: "analytics-lsp-macos.sha256"
},
{
path: "analytics-lsp-win.sha256",
name: "analytics-lsp-win.sha256",
label: "analytics-lsp-win.sha256"
},
]
},
"@semantic-release/npm",
]
}