Previously the release workflow updated Cargo.toml's version via sed but never refreshed Cargo.lock, leaving it one version behind after every release. Add cargo update for the openconcho package to the prepareCmd, and add Cargo.lock to @semantic-release/git assets so it ships in the release commit. Also bumps the lagging 0.5.1 -> 0.5.2 lockfile entry that the 0.5.2 release missed.
48 lines
1.1 KiB
JSON
48 lines
1.1 KiB
JSON
{
|
|
"repositoryUrl": "https://github.com/offendingcommit/openconcho",
|
|
"branches": ["main"],
|
|
"plugins": [
|
|
"@semantic-release/commit-analyzer",
|
|
"@semantic-release/release-notes-generator",
|
|
[
|
|
"@semantic-release/changelog",
|
|
{
|
|
"changelogFile": "CHANGELOG.md"
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/npm",
|
|
{
|
|
"npmPublish": false
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/exec",
|
|
{
|
|
"prepareCmd": "sed -i 's/^version = \"[^\"]*\"/version = \"${nextRelease.version}\"/' packages/desktop/src-tauri/Cargo.toml && cargo update -p openconcho --manifest-path packages/desktop/src-tauri/Cargo.toml",
|
|
"publishCmd": "echo new_release_published=true >> $GITHUB_OUTPUT && echo new_release_version=${nextRelease.version} >> $GITHUB_OUTPUT"
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/git",
|
|
{
|
|
"assets": [
|
|
"CHANGELOG.md",
|
|
"package.json",
|
|
"packages/desktop/src-tauri/Cargo.toml",
|
|
"packages/desktop/src-tauri/Cargo.lock"
|
|
],
|
|
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
}
|
|
],
|
|
[
|
|
"@semantic-release/github",
|
|
{
|
|
"assets": [],
|
|
"successComment": false,
|
|
"failComment": false
|
|
}
|
|
]
|
|
]
|
|
}
|