Skip to content

Commit

Permalink
docs: update build version file example
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed Nov 27, 2024
1 parent bc9c39c commit 65cbe1f
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,23 +252,28 @@ can read and write the build version to a JSON file instead, using the `fromFile
This can be useful for supporting Expo projects, where this version file can then be loaded
into your [app config](https://docs.expo.dev/workflow/configuration/).

You can call this file whatever you like, for example:
The file will be output in the following format:

```json
{
"plugins": [
["semantic-release-react-native", {
"fromFile": ".versionrc.json",
}],
]
"android": 5322,
"ios": "3837.15.99"
}
```

The file will be output in the following format:
The example below configures the `semantic-release-react-native` plugin to write the
build numbers to the `versionrc.json` file, then commits this using the
[`@semantic-release/git`](https://github.com/semantic-release/git) plugin.

```json
{
"android": 5322,
"ios": "3837.15.99"
"plugins": [
["semantic-release-react-native", {
"fromFile": ".versionrc.json",
}],
["@semantic-release/git", {
"assets": [".versionrc.json"],
}],
]
}
```

0 comments on commit 65cbe1f

Please sign in to comment.