Skip to content

Commit 65cbe1f

Browse files
docs: update build version file example
1 parent bc9c39c commit 65cbe1f

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -252,23 +252,28 @@ can read and write the build version to a JSON file instead, using the `fromFile
252252
This can be useful for supporting Expo projects, where this version file can then be loaded
253253
into 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
```

0 commit comments

Comments
 (0)