-
Notifications
You must be signed in to change notification settings - Fork 0
/
knope.toml
94 lines (75 loc) · 2.22 KB
/
knope.toml
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
[package]
changelog = "CHANGELOG.md"
extra_changelog_sections = [
{ types = ["major"], name = "❗️ Breaking Changes ❗" },
{ types = ["minor"], name = "🚀 Features" },
{ types = ["patch"], name = "🐛 Fixes" },
]
[github]
owner = "robinwalterfit"
repo = "LatexWorks"
[[workflows]]
help_text = "Print the changelog entry to the console"
name = "changelog-entry"
[[workflows.steps]]
command = "echo 'This will be the changelog entry:\n\n$changelog'"
shell = true
type = "Command"
variables = { "$changelog" = "ChangelogEntry" }
[[workflows]]
help_text = "Create a new changeset entry"
name = "document-change"
[[workflows.steps]]
type = "CreateChangeFile"
[[workflows]]
help_text = "Get the current version of the project"
name = "get-version"
[[workflows.steps]]
command = "echo '$version'"
shell = true
type = "Command"
variables = { "$version" = "Version" }
[[workflows]]
help_text = "Create a new PR to prepare a release"
name = "prepare-release"
[[workflows.steps]]
allow_empty = true
type = "PrepareRelease"
[[workflows.steps]]
command = "git switch -c release/v$version"
shell = true
type = "Command"
variables = { "$version" = "Version" }
[[workflows.steps]]
command = "echo '$version' > version.txt"
shell = true
type = "Command"
variables = { "$version" = "Version" }
[[workflows.steps]]
command = "git add version.txt"
shell = true
type = "Command"
[[workflows.steps]]
command = "git commit -m \"[ci skip] chore: prepare release v$version\""
shell = true
type = "Command"
variables = { "$version" = "Version" }
[[workflows.steps]]
command = "git push --set-upstream origin release/v$version"
shell = true
type = "Command"
variables = { "$version" = "Version" }
[[workflows.steps]]
base = "main"
type = "CreatePullRequest"
[workflows.steps.title]
template = "chore: prepare release v$version"
variables = { "$version" = "Version" }
[workflows.steps.body]
template = "This PR was created by Knope. Merging it will create a new release\n\n$changelog"
variables = { "$changelog" = "ChangelogEntry" }
[[workflows]]
help_text = "Create a new release when a PR is merged to main"
name = "release"
[[workflows.steps]]
type = "Release"