misc/how_to_publish.md
This document describes the steps required to publish a new version of jsoneditor.
Update the version number in package.json.
Update package-lock.json:
npm install
Update the date and version number in the file HISTORY.md. Verify whether all changes in the new version are described.
Run the unit tests and validate whether all tests pass:
npm test
Build the build (jsoneditor.js, jsoneditor.css, ...) files by running:
npm run build-and-test
After the build is complete, verify if the files are updated and contain the correct date and version number in the header.
Test whether the npm library is ok by opening some examples, and check whether
the files under dist are created and have contents.
If everything is well, create a tag for the new version, like:
git tag v1.2.4
git push --tags
Publish to npm:
npm publish
Install the libraries locally and test whether they work correctly:
cd tmp-folder
npm install jsoneditor
Congrats, be proud.