From 4883008193b46088ce1d04f90e3051e7d62d5c58 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 12 Aug 2022 15:41:05 +0800 Subject: [PATCH] Fix preinstall failed in yarn@1.x on FreeBSD with npm@8.17 --- .github/workflows/build_test_deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 1537037ceab9..98cd5c303187 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -1476,9 +1476,9 @@ jobs: usesh: true mem: 6000 prepare: | - pkg install -y curl node14 + pkg install -y curl node16 curl -qL https://www.npmjs.com/install.sh | sh - npm install -g yarn + npm install --location=global --ignore-scripts yarn curl https://sh.rustup.rs -sSf --output rustup.sh sh rustup.sh -y --profile minimal --default-toolchain stable export PATH="/usr/local/cargo/bin:$PATH" @@ -1495,8 +1495,8 @@ jobs: freebsd-version npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" cd packages/next-swc && napi build --platform -p next-swc-napi --cargo-name next_swc_napi native --release --target x86_64-unknown-freebsd - rm -rf node_modules - rm -rf packages/next-swc/target + rm -rf ../../node_modules + rm -rf target - name: Upload artifact uses: actions/upload-artifact@v3 with: