Skip to content

Commit c6dce6a

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

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-templates.yml

Lines changed: 9 additions & 2 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 }}
@@ -65,8 +69,11 @@ jobs:
6569
echo "work_dir=${{ matrix.os }}-${{ matrix.type.name }}-${{ matrix.type.language }}" >> $GITHUB_ENV
6670
6771
- name: Create library
72+
shell: bash
73+
env:
74+
WORK_DIR: ${{ env.work_dir }}
6875
run: |
69-
rm -rf ${{ env.work_dir }} # Workaround for tests failing intermittently
76+
rm -rf $WORK_DIR # Workaround for tests failing intermittently
7077
7178
args=(
7279
--slug @bob/react-native-test
@@ -86,7 +93,7 @@ jobs:
8693
)
8794
fi
8895
89-
./packages/create-react-native-library/bin/create-react-native-library ${{ env.work_dir }} ${args[@]}
96+
./packages/create-react-native-library/bin/create-react-native-library $WORK_DIR ${args[@]}
9097
9198
- name: Restore dependencies of library
9299
id: library-yarn-cache

0 commit comments

Comments
 (0)