From 330739b5331f987e36beee2490394e697680bc6e Mon Sep 17 00:00:00 2001
From: naskya <m@naskya.net>
Date: Tue, 28 May 2024 02:36:42 +0900
Subject: [PATCH] ci: use npx for one time execution

---
 .gitlab-ci.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index df365a4bdb..19e2f93bb7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -285,12 +285,11 @@ cargo:doc:
     - apt-get update
     - apt-get install -y --no-install-recommends build-essential clang mold nodejs npm
     - cp ci/cargo/config.toml /usr/local/cargo/config.toml
-    - npm install --global netlify-cli
   script:
     - cargo doc --no-deps --document-private-items
     - printf '<meta http-equiv="refresh" content="0; url=%s">' 'backend_rs' > target/doc/index.html
     - cd target/doc
-    - netlify deploy --prod --site="${CARGO_DOC_SITE_ID}" --dir=.
+    - npx --yes netlify-cli deploy --prod --site="${CARGO_DOC_SITE_ID}" --dir=.
 
 renovate:
   stage: dependency