Explorar o código

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
王子凌 %!s(int64=2) %!d(string=hai) anos
pai
achega
2d4499f2e8
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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"