File tree Expand file tree Collapse file tree 1 file changed +14
-9
lines changed
Expand file tree Collapse file tree 1 file changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -252,23 +252,28 @@ can read and write the build version to a JSON file instead, using the `fromFile
252252This can be useful for supporting Expo projects, where this version file can then be loaded
253253into your [ app config] ( https://docs.expo.dev/workflow/configuration/ ) .
254254
255- You can call this file whatever you like, for example :
255+ The file will be output in the following format :
256256
257257``` json
258258{
259- "plugins" : [
260- [" semantic-release-react-native" , {
261- "fromFile" : " .versionrc.json" ,
262- }],
263- ]
259+ "android" : 5322 ,
260+ "ios" : " 3837.15.99"
264261}
265262```
266263
267- The file will be output in the following format:
264+ The example below configures the ` semantic-release-react-native ` plugin to write the
265+ build numbers to the ` versionrc.json ` file, then commits this using the
266+ [ ` @semantic-release/git ` ] ( https://github.com/semantic-release/git ) plugin.
268267
269268``` json
270269{
271- "android" : 5322 ,
272- "ios" : " 3837.15.99"
270+ "plugins" : [
271+ [" semantic-release-react-native" , {
272+ "fromFile" : " .versionrc.json" ,
273+ }],
274+ [" @semantic-release/git" , {
275+ "assets" : [" .versionrc.json" ],
276+ }],
277+ ]
273278}
274279```
You can’t perform that action at this time.
0 commit comments