Fork from https://github.com/stovmascript/ionic-version and updated for ionic-4 usage.
Install
npm i ionic-4-version --save -dev
npm version
in inpackage.json
Example hook to ...
"scripts": {
...
"version": "ionic-version --skip-tag && conventional-changelog -i CHANGELOG.md -s && git add CHANGELOG.md"
}
...