-
Notifications
You must be signed in to change notification settings - Fork 403
Maintenance
Simon Warta edited this page Mar 2, 2022
·
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. - Run
git clean -xdf ./packages && yarn install && yarn build export NEW_COSMJS_VERSION="0.26.0-alpha1"yarn workspaces foreach exec yarn version --immediate "$NEW_COSMJS_VERSION"git add . && git commit -m "Set version $NEW_COSMJS_VERSION" && git tag "v$NEW_COSMJS_VERSION"- Either pre-release
yarn publish-nextor stable releaseyarn publish-latest docker build -t "confio/cosmos-faucet:$NEW_COSMJS_VERSION" -f packages/faucet/Dockerfile . && docker push "confio/cosmos-faucet:$NEW_COSMJS_VERSION"git push && git push --tags
One-time setup
- Login using
npm login
For every release
- Update
CHANGELOG.md(see https://github.com/cosmos/cosmjs/commit/fc676968ee295d764e213dac52cc46dd5bc6299c). - Run
git clean -xdf && yarn install && yarn build - Run
./scripts/add_nonces.sh && git add packages/ && git commit -m "Add nonces" - Run
./node_modules/.bin/lerna publishor for pre-releases run./node_modules/.bin/lerna publish --dist-tag nextand select a pre-release version
for p in [package1] [package2] [...];
do npm dist-tag add @cosmjs/$p@$(npm view @cosmjs/$p@next version) latest;
done
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)