Releases are automated with release-plz. There is no
manual version bump, changelog edit, or cargo publish step.
- Land changes on
main. Merge feature/fix PRs as usual. Commit messages follow the#<issue> <type>: <desc>convention (feat,fix,chore,docs,ci,refactor,test). - Release PR appears automatically. On every push to
main, theRelease-plzworkflow opens or updates a single release PR that:- bumps the version in
Cargo.tomlfollowing semver (derived from the conventional commit types since the last tag —feat→ minor,fix/others → patch,!/BREAKING CHANGE→ major); - prepends the new section to
CHANGELOG.md.
- bumps the version in
- Review and merge the release PR. CI runs on it like any other PR.
Merging it triggers the
releasejob, which:- publishes
telegram-webapp-sdkto crates.io; - creates the
vX.Y.Zgit tag; - creates the matching GitHub Release with the changelog section.
- publishes
Only telegram-webapp-sdk is published. The demo, vanilla-example,
webapp-bot-example, and integration backend crates are marked
publish = false and are ignored by release-plz.
The workflow authenticates with a GH_TOKEN repository secret (a PAT with
contents:write and pull-requests:write scopes) so that the release PR
triggers the normal CI checks. The CARGO_REGISTRY_TOKEN secret is used for
publishing to crates.io.
release-plz.toml— release behavior and changelog grouping (mirrorscliff.toml)..github/workflows/release-plz.yml— thereleaseandrelease-prjobs.