-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathrelease.config.js
60 lines (60 loc) · 1.79 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
module.exports = {
branches: ["main"],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
[
"@semantic-release/github",
{
prepare: [
{
path: "@semantic-release/exec",
cmd: "mv dist/*.exe dist/bazecor-v${nextRelease.version}.exe",
},
{
path: "@semantic-release/exec",
cmd: "mv dist/*-x64.dmg dist/bazecor-v${nextRelease.version}-x64.dmg",
},
{
path: "@semantic-release/exec",
cmd: "mv dist/*-arm64.dmg dist/bazecor-v${nextRelease.version}-arm64.dmg",
},
{
path: "@semantic-release/exec",
cmd: "mv dist/*.AppImage dist/bazecor-v${nextRelease.version}.AppImage",
},
{
path: "@semantic-release/exec",
cmd: "sha256sum * > sha256sums.txt",
execCwd: "dist",
},
],
assets: [
{
path: "dist/bazecor-v${nextRelease.version}.exe",
name: "bazecor-v${nextRelease.version}.exe",
},
{
path: "dist/bazecor-v${nextRelease.version}-x64.dmg",
name: "bazecor-v${nextRelease.version}-x64.dmg",
},
{
path: "dist/bazecor-v${nextRelease.version}-arm64.dmg",
name: "bazecor-v${nextRelease.version}-arm64.dmg",
},
{
path: "dist/bazecor-v${nextRelease.version}.AppImage",
name: "bazecor-v${nextRelease.version}.AppImage",
},
{
path: "dist/sha256sums.txt",
name: "sha256sums.txt",
},
],
},
],
],
};