Skip to content

Releasing

Simon Warta edited this page Dec 8, 2022 · 7 revisions
  1. Clean and run code generator
    git clean -xdf \
      && git submodule init && git submodule update \
      && npm install \
      && npm run codegen
    
  2. Ensure all src/* changes are checked-in
  3. Update version in CHANGELOG and package.json
  4. Update lockfile and build: npm install && npm run build
  5. export NEW_VERSION=$(jq -r .version < package.json)
  6. Commit and tag git add CHANGELOG.md package.json package-lock.json && git commit -m "Set version $NEW_VERSION" && git tag "v$NEW_VERSION"
  7. npm publish or npm publish --tag next
  8. git push && git push --tags

Promote tag to latest

If a version was published to next before.

npm dist-tag add cosmjs-types@<version> latest 

Or remove next entirely:

npm dist-tag rm cosmjs-types next
Clone this wiki locally