Skip to content

Commit 80d9081

Browse files
committed
fix version output
1 parent 710214e commit 80d9081

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/template-testcli.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,29 @@ jobs:
3939
echo "RNW_VERSION=$rnwVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
4040
$rnVersion = & npm show react-native-windows@$rnwVersion peerDependencies.react-native
4141
echo "RN_VERSION=$rnVersion" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
42+
Write-Host "Using react-native-windows@$rnwVersion with react-native@$rnVersion"
4243
43-
- name: create react-native@$Env:RN_VERSION app
44-
run: npx @react-native-community/cli init testrnx --version $Env:RN_VERSION --skip-install --install-pods false --verbose --skip-git-init true
44+
- name: create react-native app
45+
run: |
46+
Write-Host "Using react-native@$Env:RN_VERSION"
47+
npx @react-native-community/cli init testrnx --version $Env:RN_VERSION --skip-install --install-pods false --verbose --skip-git-init true
4548
working-directory: ../
4649

4750
- name: yarn install
4851
run: yarn install
4952
working-directory: ../testrnx
5053

51-
- name: react-native-windows-init RNW@$Env:RNW_VERSION
54+
- name: react-native-windows-init
5255
if: ${{ inputs.useRnwWindowsInit }}
53-
run: npx --yes react-native-windows-init --overwrite --logging --version $Env:RNW_VERSION
56+
run: |
57+
Write-Host "Using react-native-windows@$Env:RNW_VERSION"
58+
npx --yes react-native-windows-init --overwrite --verbose --version $Env:RNW_VERSION
5459
working-directory: ../testrnx
5560

56-
- name: react-native init-windows RNW@$Env:RNW_VERSION
61+
- name: react-native init-windows
5762
if: ${{ ! inputs.useRnwWindowsInit }}
5863
run: |
64+
Write-Host "Using react-native-windows@$Env:RNW_VERSION"
5965
yarn add react-native-windows@$Env:RNW_VERSION
6066
yarn install
6167
npx @react-native-community/cli@latest init-windows --overwrite --logging

0 commit comments

Comments
 (0)