Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

l2beat/tools

Repository files navigation

Versioning and publishing

All of the sub-packages in this repository follow the semver system. We use a tool called changesets to manage versioning, cross-dependency versioning and publishing new versions to NPM. When you make a change and you wish to publish that change to NPM you should commit all the changes and follow these steps:

  • run yarn changeset and mark the packages you wish to publish, select what kind of a change it is (major,minor,patch) and provide the summary of the changes
  • now run yarn changeset version, this will change the generated .changeset/file.md into an entry into CHANGELOG.md and package.json in changed packages

After your PR with changed CHANGELOG.md and package.json is merged into main, a CI step will run which will try to publish all change changes.