Releasing
All ongoing development is done on the next branch. When preparing for a release, we'll create a release branch which will eventually be merged into master. This way, what's on master is always what's published on npm.
Release management is currently a manual process, to be performed by core team members only. Here's the process:
  1. 1.
    Create a release branch, usually based on next.
  2. 2.
    Open a pull request for release -> master
  3. 3.
    Write the release notes in the PR description.
  4. 4.
    Decide on the version number, taking care to follow semver. Do a pre-release before doing the actual release.
  5. 5.
    Run yarn bump to increment the version number in all package.json files as well as lerna.json.
  6. 6.
    Commit the version change as "Release vX.X.X" (using the correct version number).
  7. 7.
    Tag the release commit with git tag vX.X.X (using the correct version number).
  8. 8.
    Push the release commit AND tag: git push --follow-tags
  9. 9.
    Publish each package (in ./packages) to npm using the script below.
  10. 10.
    Create a new release on GitHub and copy the release notes there.
1
yarn build:packages
2
cd packages/react-async
3
npm publish pkg
4
cd ../react-async-devtools
5
npm publish pkg
Copied!
Take care to publish the pkg directory!
Last modified 1yr ago
Copy link