Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 560 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 560 Bytes

json-version-inc

Increments a version field property in a json file and rewrites the original file

Why ?

I needed a way to increment the versions for android and ios react-native expo builds in order to be able to use CI and fastlane to submit builds to Play Store and App Store.

Install

$ npm install -g json-version-inc

Usage

json-version-inc -j [JSON_FILE_PATH] -p [VERSION_PROPERTY_PATH] -t [TYPE: MAJOR | MINOR | PATCH]

Example

json-version-inc -j ./app.json -p expo.ios.buildNumber -t PATCH

License

MIT