Skip to content

Commit 66e02a7

Browse files
authored
improved explanation about verifying @react-native-community/cli with the most suitable version (#1025)
1 parent f303372 commit 66e02a7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/guide-release-process.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,17 @@ export NEW_VERSION="v0.76.0-rc.3" # Should be prefixed with a 'v'
150150
export GITHUB_TOKEN=<your token>
151151
```
152152

153-
Verify the `template`:
153+
Verify the `template` with the [version compatible with the release](https://github.com/react-native-community/cli#compatibility).
154+
155+
> [!Note]
156+
> For a new release, you might need to use a pre-released version. (e.g **`20.0.0-alpha.0`**).
157+
>
158+
> `npm view @react-native-community/cli versions` will print all available versions.
154159
155160
```
156161
export VERSION=${NEW_VERSION#v}
157-
npx @react-native-community/cli@latest init "ReactNative${VERSION//[.-]/_}" --version "$VERSION"
162+
export REACT_NATIVE_COMMUNITY_CLI_VERSION="^20.0.0"
163+
npx @react-native-community/cli@${REACT_NATIVE_COMMUNITY_CLI_VERSION} init "ReactNative${VERSION//[.-]/_}" --version "$VERSION"
158164
```
159165

160166
> [!Tip]

0 commit comments

Comments
 (0)