Release-It Bump Version Code
This release-it plugin enables you to easily bump the version code, e.g. in android projects. It simply increments a number everytime a release is executed. That's it.
npm install --save-dev @devsaur/release-it-bump-version-code
In release-it config:
{
"plugins": {
"@devsaur/release-it-bump-version-code": {
"versionCodes": [
{
"file": "config.xml",
"search": "(?<=android-versionCode=\")\\d+"
}
]
}
}
}
The example bumps the versionCode in cordova projects. Modify the regex and filename to match your project.