File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,21 @@ steps:
40
40
41
41
- ${{ if endsWith(parameters.template, '-app') }} :
42
42
- script : |
43
- # Change version of @react-native-community/template from next to reactNativeDevDependency - Windows #13446
43
+ # Change version of @react-native-community/template from ' next' to ' reactNativeDevDependency' - Windows #13446
44
44
npx --yes react-native@$(reactNativeDevDependency) init testcli --template @react-native-community/template@next
45
45
displayName: Init new app project with react-native init
46
46
workingDirectory: $(Agent.BuildDirectory)
47
47
48
48
- ${{ if endsWith(parameters.template, '-lib') }} :
49
49
- script : |
50
- npx --yes create-react-native-library@latest --slug testcli --description testcli --author-name "React-Native-Windows Bot" --author-email [email protected] --author-url http://example.com --repo-url http://example.com --languages java-objc --type module-new --react-native-version $(reactNativeDevDependency) --example vanilla testcli
50
+ # Change version of react-native from 'next' to 'reactNativeDevDependency' - Windows #13446
51
+ npx --yes create-react-native-library@latest --slug testcli --description testcli --author-name "React-Native-Windows Bot" --author-email [email protected] --author-url http://example.com --repo-url http://example.com --languages java-objc --type module-new --react-native-version next --example vanilla testcli
51
52
displayName: Init new lib project with create-react-native-library
52
53
workingDirectory: $(Agent.BuildDirectory)
53
54
54
55
- script : |
56
+ # Once version of react-native is reverted from 'next' to 'reactNativeDevDependency', remove 'yarn upgrade' command - Windows #13446
57
+ call yarn upgrade react-native@$(reactNativeDevDependency)
55
58
call yarn install
56
59
displayName: pre-windows yarn install
57
60
workingDirectory: $(Agent.BuildDirectory)\testcli
You can’t perform that action at this time.
0 commit comments