@@ -78,14 +78,16 @@ jobs:
78
78
mkdir patches || true
79
79
for PACKAGE in $PACKAGE_LIST; do
80
80
echo "Installing package $PACKAGE into fresh template app, then clobbering with PR version"
81
- yarn add @react-native-firebase/$PACKAGE
82
- pushd node_modules/@react-native-firebase
83
- tar -zxf $HOME/packages/react-native-firebase-${PACKAGE}-v*
84
- mv $PACKAGE/package.json package/
85
- \rm -fr $PACKAGE
86
- mv package $PACKAGE
87
- popd
88
- npx patch-package @react-native-firebase/$PACKAGE || true
81
+ yarn add @react-native-firebase/$PACKAGE || true
82
+ if [ -d node_modules/@react-native-firebase/$PACKAGE ]; then
83
+ pushd node_modules/@react-native-firebase
84
+ tar -zxf $HOME/packages/react-native-firebase-${PACKAGE}-v*
85
+ mv $PACKAGE/package.json package/
86
+ \rm -fr $PACKAGE
87
+ mv package $PACKAGE
88
+ popd
89
+ npx patch-package @react-native-firebase/$PACKAGE || true
90
+ fi
89
91
done
90
92
ls -la $HOME/template/patches
91
93
shell : bash
95
97
with :
96
98
name : patches
97
99
path : ~/template/patches/
98
-
100
+
99
101
# create a comment on the PR and any related issues with a direct link to the archive,
100
- # a call for testers, and perhaps a paste-able set of commands to install them
102
+ # a call for testers, and perhaps a paste-able set of commands to install them
101
103
# (mkdir patches, curl -o etc, npx patch-package)
102
104
# You need an artifact id to get a download link for it.
103
105
# You need a workflow run id to get an artifact id.
0 commit comments