File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,17 @@ export NEW_VERSION="v0.76.0-rc.3" # Should be prefixed with a 'v'
150150export 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```
156161export 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]
You can’t perform that action at this time.
0 commit comments