-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathknope.toml
More file actions
100 lines (78 loc) · 2.61 KB
/
knope.toml
File metadata and controls
100 lines (78 loc) · 2.61 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
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
95
96
97
98
99
100
[package]
versioned_files = [
"Cargo.toml",
{ path = "Cargo.lock", dependency = "apollo-mcp-server" },
{ path = "Cargo.lock", dependency = "apollo-mcp-registry" },
{ path = "Cargo.lock", dependency = "apollo-schema-index" },
{ path = "Cargo.lock", dependency = "apollo-mcp-rhai" },
{ path = "scripts/nix/install.sh", regex = "PACKAGE_VERSION=\"v(?<version>\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.]+)?)\"" },
{ path = "scripts/windows/install.ps1", regex = "\\$package_version = 'v(?<version>\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.]+)?)'" },
{ path = "docs/source/run.mdx", regex = [
"(^|[^\\w.-])v?(?<version>\\d+\\.\\d+\\.\\d+(-experimental\\.\\d+)?)([^\\w.-]|$)",
"(^|[^\\w.-])v?(?<version>\\d+\\.\\d+\\.\\d+(-experimental\\.\\d+)?)-rc\\.\\d+([^\\w.]|$)",
] },
{ path = "server.json", regex = ["\"version\": \"(?<version>\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.]+)?)\"", "apollo-mcp-server:v(?<version>\\d+\\.\\d+\\.\\d+(-[a-zA-Z0-9.]+)?)\""] },
]
changelog = "CHANGELOG.md"
assets = "artifacts/*"
[[workflows]]
name = "prepare-release"
[[workflows.steps]]
type = "Command"
command = "git switch -c prepare-release"
[[workflows.steps]]
type = "PrepareRelease"
ignore_conventional_commits = true
[[workflows.steps]]
type = "Command"
command = "git branch -m release/$version"
[[workflows.steps]]
type = "Command"
command = "git commit -m \"chore: prepare release $version\""
[[workflows.steps]]
type = "Command"
command = "git push --set-upstream origin release/$version"
[[workflows.steps]]
type = "CreatePullRequest"
base = "main"
[workflows.steps.title]
template = "Release $version"
[workflows.steps.body]
template = "This PR was created by Knope. Merging it will create a new release\n\n$changelog"
[[workflows.steps]]
type = "Command"
command = "gh pr edit --add-label release"
shell = true
[[workflows]]
name = "release"
[[workflows.steps]]
type = "Release"
[[workflows]]
name = "get-version"
[[workflows.steps]]
type = "Command"
command = "echo \"$version\""
[[workflows]]
name = "prepare-experimental-release"
[[workflows.steps]]
type = "Command"
command = "git switch -c release-temp-$NEW_VERSION-$GIT_RUN_ID"
shell=true
[[workflows.steps]]
type = "PrepareRelease"
ignore_conventional_commits = true
[[workflows.steps]]
type = "Command"
command = "git commit -m \"chore: prepare experimental release $NEW_VERSION\""
shell=true
[[workflows.steps]]
type = "Command"
command = "git push --force --set-upstream origin release-temp-$NEW_VERSION-$GIT_RUN_ID"
shell=true
[[workflows]]
name = "document-change"
[[workflows.steps]]
type = "CreateChangeFile"
[github]
owner = "apollographql"
repo = "apollo-mcp-server"