Skip to content

Commit 94cebff

Browse files
feat: addedd command to push to both remotes
1 parent c107796 commit 94cebff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"build:android": "cd example/android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
3737
"build:ios": "cd example/ios && xcodebuild -workspace ReactNativeMaterialComponentsExample.xcworkspace -scheme ReactNativeMaterialComponentsExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO",
3838
"bootstrap": "yarn example && yarn install && yarn example pods",
39-
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
39+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build",
40+
"push-to-remotes": "BRANCH=${BRANCH:-$(git rev-parse --abbrev-ref HEAD)} && git push origin $BRANCH && git push github $BRANCH"
4041
},
4142
"keywords": [
4243
"react-native",

0 commit comments

Comments
 (0)