Skip to content

Commit 22ea74f

Browse files
committed
ci: schedule nightly builds with latest react native
1 parent 7b6b2fb commit 22ea74f

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

.github/workflows/build-templates.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build template
22
on:
33
workflow_dispatch:
4+
schedule:
5+
- cron: "0 0 * * *"
46
push:
57
branches:
68
- main
@@ -65,17 +67,26 @@ jobs:
6567
- name: Create library
6668
run: |
6769
rm -rf ${{ env.work_dir }} # Workaround for tests failing intermittently
68-
./packages/create-react-native-library/bin/create-react-native-library ${{ env.work_dir }} \
69-
--slug @bob/react-native-test \
70-
--description test \
71-
--author-name test \
72-
--author-email test@test \
73-
--author-url https://test.test \
74-
--repo-url https://test.test \
75-
--type ${{ matrix.type.name }} \
76-
--languages ${{ matrix.type.language }} \
77-
--example ${{ matrix.type.language == 'js' && 'expo' || 'vanilla' }} \
78-
--no-local
70+
71+
args=(
72+
--slug @bob/react-native-test
73+
--description test
74+
--author-name test
75+
--author-email test@test
76+
--author-url https://test.test
77+
--repo-url https://test.test
78+
--type ${{ matrix.type.name }}
79+
--languages ${{ matrix.type.language }}
80+
--example ${{ matrix.type.language == 'js' && 'expo' || 'vanilla' }}
81+
)
82+
83+
if [[ ${{ github.event_name }} == 'schedule' ]]; then
84+
args+=(
85+
--react-native-version latest
86+
)
87+
fi
88+
89+
./packages/create-react-native-library/bin/create-react-native-library ${{ env.work_dir }} ${args[@]}
7990
8091
- name: Restore dependencies of library
8192
id: library-yarn-cache

0 commit comments

Comments
 (0)