From 526fd0b0936ac65a09fec03c4221e64148ae87a3 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 19 Nov 2023 17:16:47 +0100 Subject: [PATCH] ci(workflow): use npm instead of npx for capture-website-cli --- .github/workflows/capture-website.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/capture-website.yml b/.github/workflows/capture-website.yml index 34cec9c4f3d..69424337b1c 100644 --- a/.github/workflows/capture-website.yml +++ b/.github/workflows/capture-website.yml @@ -35,9 +35,13 @@ jobs: # don't use cache as it may interfere with other jobs # cache: npm + - name: Install global dependencies + run: | + npm install --global capture-website-cli@4.0.0 + - name: Screenshot Website run: | - npx capture-website-cli@4.0.0 \ + capture-website \ --type webp \ --quality=0.7 \ --launch-options='{"headless": "new"}' \