Skip to content

Commit 26f0151

Browse files
committed
fix(ci): force install yarn in linux containers
1 parent 464279d commit 26f0151

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ jobs:
4444
apt-get update && apt-get install -y curl &&
4545
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - &&
4646
apt-get install -y nodejs &&
47-
npm install -g yarn &&
47+
npm install -g yarn --force &&
4848
yarn build --target x86_64-unknown-linux-gnu
4949
- host: ubuntu-latest
5050
target: x86_64-unknown-linux-musl
5151
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
5252
build: |
5353
apk add --no-cache curl nodejs npm &&
54-
npm install -g yarn &&
54+
npm install -g yarn --force &&
5555
yarn build --target x86_64-unknown-linux-musl
5656
- host: macos-latest
5757
target: aarch64-apple-darwin
@@ -63,7 +63,7 @@ jobs:
6363
apt-get update && apt-get install -y curl &&
6464
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - &&
6565
apt-get install -y nodejs &&
66-
npm install -g yarn &&
66+
npm install -g yarn --force &&
6767
rustup target add aarch64-unknown-linux-gnu &&
6868
yarn build --target aarch64-unknown-linux-gnu
6969
- host: ubuntu-latest
@@ -95,7 +95,7 @@ jobs:
9595
build: |-
9696
set -e &&
9797
apk add --no-cache curl nodejs npm &&
98-
npm install -g yarn &&
98+
npm install -g yarn --force &&
9999
rustup target add aarch64-unknown-linux-musl &&
100100
yarn build --target aarch64-unknown-linux-musl
101101
- host: windows-latest

0 commit comments

Comments
 (0)