Skip to content

Commit 00ab7ec

Browse files
committed
ci: build js library template on windows
1 parent 05ece3e commit 00ab7ec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-templates.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
type:
4343
name: library
4444
language: js
45+
- os: windows-latest
46+
type:
47+
name: library
48+
language: js
4549

4650
concurrency:
4751
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type.name }}-${{ matrix.type.language }}
@@ -61,10 +65,12 @@ jobs:
6165
yarn workspace create-react-native-library prepare
6266
6367
- name: Get working directory
68+
shell: bash
6469
run: |
6570
echo "work_dir=${{ matrix.os }}-${{ matrix.type.name }}-${{ matrix.type.language }}" >> $GITHUB_ENV
6671
6772
- name: Create library
73+
shell: bash
6874
run: |
6975
rm -rf ${{ env.work_dir }} # Workaround for tests failing intermittently
7076
@@ -117,6 +123,7 @@ jobs:
117123
key: ${{ steps.library-yarn-cache.outputs.cache-primary-key }}
118124

119125
- name: Use local version of react-native-builder-bob
126+
shell: bash
120127
run: |
121128
cd packages/react-native-builder-bob
122129
npm pack
@@ -126,6 +133,7 @@ jobs:
126133
YARN_CHECKSUM_BEHAVIOR=ignore yarn add --dev ../packages/react-native-builder-bob/$tgz
127134
128135
- name: Get build target
136+
if: matrix.os != 'windows-latest'
129137
working-directory: ${{ env.work_dir }}
130138
run: |
131139
# Build Android for only some matrices to skip redundant builds

0 commit comments

Comments
 (0)