Repository navigation
Expand file tree
/
Copy path.releaserc.json
More file actions
57 lines (57 loc) · 1.87 KB
/
Copy path.releaserc.json
File metadata and controls
57 lines (57 loc) · 1.87 KB
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
{
"repositoryUrl": "git@github.com:ExaDev/github-runner.git",
"branches": ["main"],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "revert", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "docs", "release": "patch" },
{ "type": "style", "release": "patch" },
{ "type": "test", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "ci", "release": "patch" },
{ "type": "chore", "release": "patch" }
]
}
],
"@semantic-release/release-notes-generator",
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "python3 scripts/release/stamp_version.py ${nextRelease.version} && ansible-galaxy collection build --force",
"publishCmd": "if [ -n \"$GALAXY_API_KEY\" ]; then ansible-galaxy collection publish exadev-github_runner-${nextRelease.version}.tar.gz --api-key \"$GALAXY_API_KEY\"; else echo 'GALAXY_API_KEY is not set, skipping Ansible Galaxy publish.'; fi"
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "galaxy.yml", "roles/github_runner_arc/defaults/main.yml", "roles/github_runner_cluster/defaults/main.yml"],
"message": "chore(release): ${nextRelease.version} [skip ci]"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "exadev-github_runner-*.tar.gz",
"label": "Ansible collection tarball"
}
]
}
]
]
}