Interesting work by Algolia, to more easily release new versions of your packages:
When releasing, you go through something like the following:
- Update the version in
package.json- Update the changelog
- Actually release it (e.g.
yarn build&&yarn publish)- Create a git tag
As such as manual process is prone to errors, they’ve developed π³ Ship.js, by which you can automate the process:
- Run
shipjs preparewhich will figure out the next version and create a PR - Manually review the PR
- Run
shipjs releaseto trigger a release and set up the proper tags and such
Installation per npm/yarn:
yarn add -D shipjs