This repository contains test-tube
– the core and osmosis-test-tube
– the osmosis bindings.
As test-tube
is the core, we can simply release it by:
- Run
cargo test
to make sure that everything works - Bump
test-tube
version inpackages/test-tube/Cargo.toml
- Release new version of
test-tube
by runningcargo publish -p test-tube
- Create github release with
test-tube-v<major>.<minor>.<patch>
as tag and title
Releasing osmosis-test-tube
is a bit more complicated as it depends on test-tube
and osmosis
.
- Run
SKIP_GIT_UPDATE=1 ./scripts/update-osmosis-test-tube.sh v<major>.<minor>.<patch>
using the version ofosmosis
you want to release with. This will updatereplace
directives inpackages/osmosis-test-tube/libosmosistesttube/go.mod
to be compatible with the designated version ofosmosis
. - in
go.mod
file, make sure that the linegithub.com/osmosis-labs/osmosis/v<major> v<major>.<minor>.<patch>
is present and points to the correct version ofosmosis
and rungo mod tidy
- With updated version, replace all existing import that use the previous
github.com/osmosis-labs/osmosis/v<major>
with the new one - Release
osmosis-std
with new osmosis version and updateosmosis-std
version inpackages/osmosis-test-tube/Cargo.toml
- Check if there is any update on
test-tube
since lastest release ofosmosis-test-tube
.- Can check via
git diff --stat osmosis-test-tube-v<major>.<minor>.<patch> -- packages/test-tube/
- If there is any release
test-tube
first - Update
test-tube
version inpackages/osmosis-test-tube/Cargo.toml
- Can check via
- Run
cargo test
to make sure that everything works
Note: if doc test fail, try
cargo clean
and run test again.
- Bump
osmosis-test-tube
version inpackages/osmosis-test-tube/Cargo.toml
- Release new version of
osmosis-test-tube
by runningcargo publish -p osmosis-test-tube
- Create github release with
osmosis-test-tube-v<major>.<minor>.<patch>
as tag and title