Skip to content

Commit

Permalink
update script temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
Yajur-Grover committed Jul 16, 2024
1 parent 5e9e7e3 commit e534281
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .ado/templates/react-native-init-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@ steps:

- ${{ if endsWith(parameters.template, '-app') }}:
- script: |
# Change version of @react-native-community/template from next to reactNativeDevDependency - Windows #13446
# Change version of @react-native-community/template from 'next' to 'reactNativeDevDependency' - Windows #13446
npx --yes react-native@$(reactNativeDevDependency) init testcli --template @react-native-community/template@next
displayName: Init new app project with react-native init
workingDirectory: $(Agent.BuildDirectory)
- ${{ if endsWith(parameters.template, '-lib') }}:
- script: |
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
# Change version of react-native from 'next' to 'reactNativeDevDependency' - Windows #13446
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
displayName: Init new lib project with create-react-native-library
workingDirectory: $(Agent.BuildDirectory)
- script: |
# Once version of react-native is reverted from 'next' to 'reactNativeDevDependency', remove 'yarn upgrade' command - Windows #13446
call yarn upgrade react-native@$(reactNativeDevDependency)
call yarn install
displayName: pre-windows yarn install
workingDirectory: $(Agent.BuildDirectory)\testcli
Expand Down

0 comments on commit e534281

Please sign in to comment.