-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.releaserc
108 lines (108 loc) · 3.04 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"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 executable",
"path": "@semantic-release/exec",
"cmd": "pkg . -t node14-alpine-x64 -o snyk-alpine"
},
{
"//": "build the Linux executable",
"path": "@semantic-release/exec",
"cmd": "pkg . -t node12-linux-x64 -o snyk-linux"
},
{
"//": "build the macOS executable",
"path": "@semantic-release/exec",
"cmd": "pkg . -t node12-macos-x64 -o snyk-macos"
},
{
"//": "build the windows executable",
"path": "@semantic-release/exec",
"cmd": "pkg . -t node12-win-x64 -o snyk-win.exe"
},
{
"//": "build docker package",
"path": "@semantic-release/exec",
"cmd": "./release-scripts/docker-desktop-release.sh"
},
{
"//": "build docker package",
"path": "@semantic-release/exec",
"cmd": "./release-scripts/sign-windows-binary.sh"
},
{
"//": "shasum all binaries",
"path": "@semantic-release/exec",
"cmd": "shasum -a 256 snyk-linux > snyk-linux.sha256 && shasum -a 256 snyk-macos > snyk-macos.sha256 && shasum -a 256 snyk-alpine > snyk-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-linux",
"name": "snyk-linux",
"label": "snyk-linux"
},
{
"path": "./snyk-linux.sha256",
"name": "snyk-linux.sha256",
"label": "snyk-linux.sha256"
},
{
"path": "./snyk-macos",
"name": "snyk-macos",
"label": "snyk-macos"
},
{
"path": "./snyk-macos.sha256",
"name": "snyk-macos.sha256",
"label": "snyk-macos.sha256"
},
{
"path": "./snyk-win-signed.exe",
"name": "snyk-win.exe",
"label": "snyk-win.exe"
},
{
"path": "./snyk-win-signed.exe.sha256",
"name": "snyk-win.exe.sha256",
"label": "snyk-win.exe.sha256"
},
{
"path": "./snyk-alpine",
"name": "snyk-alpine",
"label": "snyk-alpine"
},
{
"path": "./snyk-alpine.sha256",
"name": "snyk-alpine.sha256",
"label": "snyk-alpine.sha256"
},
{
"path": "./docker-mac-signed-bundle.tar.gz",
"name": "docker-mac-signed-bundle.tar.gz",
"label": "docker-mac-signed-bundle.tar.gz"
},
{
"path": "./docker-mac-signed-bundle.tar.gz.sha256",
"name": "docker-mac-signed-bundle.tar.gz.sha256",
"label": "docker-mac-signed-bundle.tar.gz.sha256"
}
]
}
]
}