Skip to content

Commit a564eb2

Browse files
author
Anaïs Saraiva
committed
Update build.yml
1 parent 10302d3 commit a564eb2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,21 @@ jobs:
4747
powershell -c "irm bun.sh/install.ps1 | iex"
4848
echo "$env:USERPROFILE\.bun\bin" >> $env:GITHUB_PATH
4949
50-
- name: install frontend dependencies
50+
- name: install frontend dependencies (Linux)
51+
if: matrix.platform == 'ubuntu-22.04'
5152
run: |
5253
npm cache clean --force
5354
rm -rf node_modules package-lock.json
5455
npm install
5556
57+
- name: install frontend dependencies (Windows)
58+
if: matrix.platform == 'windows-latest'
59+
run: |
60+
npm cache clean --force
61+
if (Test-Path node_modules) { Remove-Item -Recurse -Force node_modules }
62+
if (Test-Path package-lock.json) { Remove-Item -Force package-lock.json }
63+
npm install
64+
5665
- name: install Rust stable
5766
uses: dtolnay/rust-toolchain@stable
5867

0 commit comments

Comments
 (0)