This project uses "git flow", so to be able to properly create releases you
have to execute git flow init once.
Also you need to have npm installed, and you need to have run npm install
once.
Document changes in CHANGELOG.md. Ideally this is done during development.
If not, do a diff against the last released version and document the changes
you see.
-
When the time comes for a release, open a release branch like this:
git flow release start x.y.z(using the correct version number).
-
Bump the version number in
package.json. Since the version number is incorporated into the generated source and the generated source is checked in, you have to build the release files, after you update the version number like this:npm run buildThis should rebuild
dist/umd/livingapi.js,dist/umd/livingapi.js.map,dist/esm-node/livingapi.js,dist/esm-node/livingapi.js.map,dist/esm-static/livingapi.jsanddist/esm-static/livingapi.js.map. -
Update UL4 and LivingAPI version number in the example code in
README.md. -
Check in the resulting changes.
-
Close the release branch with the following command:
git flow release finish x.y.z(using the same version number that you used in step 1).
-
Push all changes to the internal Gitlab instance with:
git push --allThe internal Gitlab instance will automatically mirror what you pushed to
github.com.
To push the finished release to npmjs.org do the following:
npm publish --access public
The release should be visible at https://www.npmjs.com/package/@livinglogic/livingapi after this.