-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e9e7e3
commit e534281
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|