Skip to content

tresorama/react-dev-track-rerender

Repository files navigation

react-dev-track-rerender

React Component that Tracks Mount and Rerender

Documentation

Refer to readme

How to release

We use changeset, and (for now) we don't automate the release process, but run it from local machine.

  1. In your feature branch, commit code, and open a PR
  2. When you are ready to merge, run from root pnpm publish-packages:add-changeset and follow the wizard.
    This will:
    • Create a file .changeset/xxx.md with data for the change.
    • Commit this file in the feature branch. ⚠️ Nothing is released to NPM yet.
  3. Puh the new commit, and merge the PR
    This enure that every md files in .changeset are included in the main branch now.
    ⚠️ Nothing is released to NPM yet.
  4. Go to main branch, do a git pull
    This will ensure that the main branch is up-to-date.
  5. From root, run pnpm publish-packages:release
    This will:
    • run pnpm changeset version, that:
      • Read all .changeset/*.md files and calculate the new versions for all packages.
      • Bump version in package.json files accordingly.
      • Update CHANGELOG.md for each package.
      • Delete the .changeset/*.md files used for this release.
      • Commit the version bump to main.
        ⚠️ Packagege are not released to NPM yet, but package.json are updated.
    • run pnpm changeset publish, that:
      • Publish all packages to NPM ✅ Packages are now released to NPM

About

React Component that Tracks Mount and Rerender

Topics

Resources

Stars

Watchers

Forks