Browse Source

ci: use freebsd pkg installer to install yarn/npm (#325)

* ci: use freebsd pkg installer to install yarn

* ci: use freebsd pkg installer to install npm
王子凌 2 năm trước cách đây
mục cha
commit
2d4499f2e8
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      .github/workflows/CI.yml

+ 1 - 3
.github/workflows/CI.yml

@@ -179,9 +179,7 @@ jobs:
           usesh: true
           mem: 3000
           prepare: |
-            pkg install -y -f curl node libnghttp2
-            curl -qL https://www.npmjs.com/install.sh | sh
-            npm install --location=global --ignore-scripts yarn
+            pkg install -y -f curl node libnghttp2 npm yarn
             curl https://sh.rustup.rs -sSf --output rustup.sh
             sh rustup.sh -y --profile minimal --default-toolchain beta
             export PATH="/usr/local/cargo/bin:$PATH"