Skip to content

Commit cf39ca4

Browse files
committed
ci: build web on ci
1 parent 5b19e50 commit cf39ca4

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/build-templates.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ jobs:
8686
--repo-url https://test.test
8787
--type ${{ matrix.type.name }}
8888
--languages ${{ matrix.type.language }}
89-
--example ${{ matrix.type.language == 'js' && 'expo' || 'vanilla' }}
89+
--example vanilla
90+
--tools vite
9091
--tools eslint
9192
--tools jest
9293
--tools lefthook
@@ -209,17 +210,6 @@ jobs:
209210
run: |
210211
yarn prepare
211212
212-
- name: Build example (Web)
213-
if: matrix.type.language == 'js'
214-
working-directory: ${{ env.work_dir }}
215-
shell: bash
216-
run: |
217-
# Clean up built JS files
218-
# So we test that bundling works without any pre-built files
219-
rm -rf lib/*
220-
221-
yarn example expo export --platform web
222-
223213
- name: Install JDK
224214
if: env.android_build == 1 && env.turbo_cache_hit_android != 1
225215
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
@@ -271,3 +261,13 @@ jobs:
271261
working-directory: ${{ env.work_dir }}
272262
run: |
273263
yarn turbo run build:ios --cache-dir=".turbo"
264+
265+
- name: Build example (Web)
266+
working-directory: ${{ env.work_dir }}
267+
shell: bash
268+
run: |
269+
# Clean up built JS files
270+
# So we test that bundling works without any pre-built files
271+
rm -rf lib/*
272+
273+
yarn example build:web

packages/create-react-native-library/templates/common/$.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ jobs:
194194
run: |
195195
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
196196
<% } -%>
197+
197198
<% if (example === 'expo' || tools.includes('vite')) { -%>
198199
build-web:
199200
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)