{"repo":"stovmascript/react-native-version","free":true,"listed":false,"github":"https://github.com/stovmascript/react-native-version","clone":"git clone https://github.com/stovmascript/react-native-version.git","description":":1234: Version your React Native or Expo app in a `npm version` fashion.","language":"JavaScript","stars":589,"topics":["react-native","semantic-versioning","semver","npm-version","expo","create-react-native-app","hooks","cli","versioning","release"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-version Seamlessly shadows the behaviour of npm version . npm-scripts hook (automatic method) Setup Hook into the \"version\" or \"postversion\" npm script in your app's package.json: Usage Before you publish a new build of your app, run npm version . react-native-version will then update your android/ and ios/ code. Depending on the script and options you choose, it can also automatically amend the version bump commit and update the Git tag created by npm version . This method should be useful in most cases. If you need more control, take a look at the CLI and options below. CLI Setup Example usage Options -V, --version output the version number -a, --amend Amend the previous commit. This is done automatically when react-native-version is run from the \"version\" or \"postversion\" npm script. Use \"--never-amend\" if you never want to amend. Also, if the previous commit is a valid npm-version commit, react-native-version will update the Git tag pointing to this commit. --skip-tag For use with \"--amend\", if you don't want to update Git tags. Use this option if you have git-tag-version set to false in your npm config or you use \"--no-git-tag-version\" during npm-version. -A, --never-amend Never amend the previous commit. -b, --increment-build Only increment build number. -B, --never-increment-build Never increment build number. -d, --android [path] Path to your \"android/app/build.gradle\" file. (default: \"android/app/build.gradle\") -i, --ios [path] Path to your \"ios/\" folder","default_branch":null,"files":null,"tree":[],"storefront":"/r/stovmascript","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stovmascript/react-native-version/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}