Skip to content

Commit e0643b5

Browse files
committed
fix(ci): switch release-please to simple mode for Cargo workspace compatibility
Cargo workspace with `version.workspace = true` in member crates is not supported by release-please's rust mode. Switch to simple mode with extra-files to update workspace.package.version in root Cargo.toml and tauri.conf.json version.
1 parent 1e0b5f9 commit e0643b5

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

release-please-config.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3-
"release-type": "rust",
3+
"release-type": "simple",
44
"bump-minor-pre-major": true,
55
"bump-patch-for-minor-pre-major": true,
66
"include-component-in-tag": false,
7-
"extra-files": [
8-
{
9-
"type": "json",
10-
"path": "tauri/tauri.conf.json",
11-
"jsonpath": "$.version"
12-
}
13-
],
147
"changelog-sections": [
158
{ "type": "feat", "section": "Features" },
169
{ "type": "fix", "section": "Bug Fixes" },
@@ -22,6 +15,19 @@
2215
{ "type": "ci", "section": "CI", "hidden": true }
2316
],
2417
"packages": {
25-
".": {}
18+
".": {
19+
"extra-files": [
20+
{
21+
"type": "toml",
22+
"path": "Cargo.toml",
23+
"jsonpath": "$.workspace.package.version"
24+
},
25+
{
26+
"type": "json",
27+
"path": "tauri/tauri.conf.json",
28+
"jsonpath": "$.version"
29+
}
30+
]
31+
}
2632
}
2733
}

0 commit comments

Comments
 (0)