Explorar o código

Merge pull request #304 from napi-rs/npm-install

ci: npm i -g is deprecated
LongYinan %!s(int64=3) %!d(string=hai) anos
pai
achega
c015d62a6d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .github/workflows/CI.yml

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

@@ -192,7 +192,7 @@ jobs:
           prepare: |
             pkg install -y curl node14 python2
             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"