File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # As we currently have two deployments of react-native-firebase.
3
+ # One is one producetion https://vercel.com/invertase/react-native-firebase
4
+ # Another is new modules located at https://vercel.com/invertase/react-native-firebase-next
5
+
6
+ # This script when combined with the ignore build step command https://vercel.com/invertase/react-native-firebase-next/settings/git
7
+ # ensures that only the @invertase/next will cause a build on the new modules deployments.
8
+
9
+ # This does not affect the main production deployment.
10
+
11
+ echo " VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF "
12
+
13
+ if [[ " $VERCEL_GIT_COMMIT_REF " == " @invertase/next" ]] ; then
14
+ # Proceed with the build
15
+ echo " ✅ - Detected this is a build of @invertase/next - build can proceed"
16
+ exit 1;
17
+
18
+ else
19
+ # Don't build
20
+ echo " 🛑 - This is not a build of @invertase/next build cancelled"
21
+ exit 0;
22
+ fi
23
+
You can’t perform that action at this time.
0 commit comments