First, make sure you are logged-in https://crates.io with: cargo login
.
If you don't have write access to Logos' crates, you can still
perform steps 1-4, and ask a maintainer with accesses to perform step 5.
This project uses cargo-release
to publish all packages with more ease.
Note that, by default, every command runs in dry mode, and you need to append --execute
to actually perform the action.
Here are the following steps to release a new version:
- create a branch
release-x.y.z
from themaster
branch; - run and commit
cargo release version --workspace <LEVEL>
; - run and commit
cargo release replace --workspace
; - push your branch and create a pull request;
- and, once your branch was merged to
master
, run the following:cargo release publish --package logos-codegen cargo release publish --package logos-derive cargo release publish --package logos-cli cargo release publish --package logos
And voilà!