-
Notifications
You must be signed in to change notification settings - Fork 403
Maintenance
Simon Warta edited this page Oct 22, 2025
·
33 revisions
This page is for maintainers of CosmJS only.
One-time setup
- Login using
yarn npm login --publish
For every release
-
Update
CHANGELOG.mdand ensure it is properly formatted (see fc676968ee). We will commit this in step 5. -
export NEW_COSMJS_VERSION="0.26.0-alpha.1" -
Run
git clean -xdf ./packages && yarn install \ && yarn format-text && yarn build \ && yarn workspaces foreach --all exec 'yarn version --immediate "$NEW_COSMJS_VERSION"' \ && git add CHANGELOG.md packages/ && git commit -m "Set version $NEW_COSMJS_VERSION" && git tag "v$NEW_COSMJS_VERSION" -
Publish to npm using one of
Release type Command npm tag Latest stable yarn publish-latestlatestPre-release yarn publish-nextnextBackport yarn publish-backportsbackports-unsorted -
git push && git push --tags
On a x86_64 machine
export NEW_COSMJS_VERSION="0.26.0-alpha.1"git fetch --all && git checkout "v$NEW_COSMJS_VERSION"- Build, test and publish docker image:
docker build --pull --platform linux/amd64 -t "confio/faucet:$NEW_COSMJS_VERSION" -f packages/faucet/Dockerfile . \ && docker run --rm "confio/faucet:$NEW_COSMJS_VERSION" version \ && docker run --rm "confio/faucet:$NEW_COSMJS_VERSION" generate \ && docker push "confio/faucet:$NEW_COSMJS_VERSION"
yarn set version latest
When no current pre-release exists, the next tag should be deleted:
$ ./node_modules/.bin/lerna exec --no-private -- npm dist-tag rm "\$LERNA_PACKAGE_NAME" next
yarn set version latest- Check:
yarn --version - Ensure lockfile is up-to-date:
yarn install
- Install the new version of ts-proto using yarn
- Download proto files
for p in cosmwasm-stargate stargate proto-signing; do (cd "packages/$p" && yarn get-proto); done - Regenerate TS files
for p in cosmwasm-stargate stargate proto-signing; do (cd "packages/$p" && yarn define-proto); done - Revert path issues (see https://github.com/cosmos/cosmjs/issues/656)