From 1c88c92650ae8b2eb26df05dadedbb12376d43a0 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 5 Dec 2024 18:10:19 +0800 Subject: [PATCH] ci: add image compression action --- .github/workflows/build-check.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index a73412183f1..c44c8b43470 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -24,9 +24,9 @@ jobs: - name: Install image optimization tools run: | - apt-get update - apt-get install -y jpegoptim optipng gifsicle webp - npm install -g svgo + sudo apt-get update + sudo apt-get install -y jpegoptim optipng gifsicle webp + sudo npm install -g svgo - name: Setup Node uses: actions/setup-node@v4