-
Notifications
You must be signed in to change notification settings - Fork 36
/
.releaserc
70 lines (70 loc) · 2.33 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
{
"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 node14-linux-x64,node14-macos-x64,node14-win-x64"
},
{
"//": "shasum all binaries",
"path": "@semantic-release/exec",
"cmd": "shasum -a 256 snyk-scm-contributors-count-linux > snyk-scm-contributors-count-linux.sha256 && shasum -a 256 snyk-scm-contributors-count-macos > snyk-scm-contributors-count-macos.sha256 && shasum -a 256 snyk-scm-contributors-count-win.exe > snyk-scm-contributors-count-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-scm-contributors-count-linux",
"name": "snyk-scm-contributors-count-linux",
"label": "snyk-scm-contributors-count-linux"
},
{
"path": "./snyk-scm-contributors-count-linux.sha256",
"name": "snyk-scm-contributors-count-linux.sha256",
"label": "snyk-scm-contributors-count-linux.sha256"
},
{
"path": "./snyk-scm-contributors-count-macos",
"name": "snyk-scm-contributors-count-macos",
"label": "snyk-scm-contributors-count-macos"
},
{
"path": "./snyk-scm-contributors-count-macos.sha256",
"name": "snyk-scm-contributors-count-macos.sha256",
"label": "snyk-scm-contributors-count-macos.sha256"
},
{
"path": "./snyk-scm-contributors-count-win.exe",
"name": "snyk-scm-contributors-count-win.exe",
"label": "snyk-scm-contributors-count-win.exe"
},
{
"path": "./snyk-scm-contributors-count-win.exe.sha256",
"name": "snyk-scm-contributors-count-win.exe.sha256",
"label": "snyk-scm-contributors-count-win.exe.sha256"
}
]
}
],
"branches": [
"main",
{
"name": "alpha",
"prerelease": true
}
]
}