-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.releaserc.json
72 lines (72 loc) · 1.84 KB
/
.releaserc.json
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
{
"branches": ["stable"],
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i -E \"s@(<version>)[^<]+(</version>)@\\1${nextRelease.version}\\2@\" plugin.xml"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i -E \"s@%NEXT_VERSION%@${nextRelease.version}@g\" plugin.xml"
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "plugin.xml"],
"message": "chore(release): ${nextRelease.version} [skip ci] \n\n${nextRelease.notes}"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "mkdir -p MakairaConnect"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "find . -mindepth 1 -maxdepth 1 \\! -name 'MakairaConnect' -a \\! -name 'vendor' -print0 | xargs -0 cp -Pfrt MakairaConnect/"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "composer install -qno --no-ansi --no-scripts --no-progress --prefer-dist --no-dev",
"execCwd": "MakairaConnect"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "rm -rf .git* .releaserc.json composer.* package.json yarn.lock node_modules",
"execCwd": "MakairaConnect"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "zip -r /tmp/MakairaConnect.zip ./MakairaConnect/*"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "/tmp/MakairaConnect.zip",
"label": "Shopware 5 Plugin - Version ${nextRelease.version}",
"name": "MakairaConnect-${nextRelease.version}.zip"
}
]
}
]
]
}