Skip to content

Commit e534281

Browse files
committed
update script temporarily
1 parent 5e9e7e3 commit e534281

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.ado/templates/react-native-init-windows.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,21 @@ steps:
4040

4141
- ${{ if endsWith(parameters.template, '-app') }}:
4242
- 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
4444
npx --yes react-native@$(reactNativeDevDependency) init testcli --template @react-native-community/template@next
4545
displayName: Init new app project with react-native init
4646
workingDirectory: $(Agent.BuildDirectory)
4747
4848
- ${{ if endsWith(parameters.template, '-lib') }}:
4949
- 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
5152
displayName: Init new lib project with create-react-native-library
5253
workingDirectory: $(Agent.BuildDirectory)
5354
5455
- 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)
5558
call yarn install
5659
displayName: pre-windows yarn install
5760
workingDirectory: $(Agent.BuildDirectory)\testcli

0 commit comments

Comments
 (0)