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