fix(ci): install Sharp platform dependencies
This commit is contained in:
@@ -28,7 +28,11 @@ jobs:
|
||||
run: |
|
||||
npm ci \
|
||||
--registry="https://package-mirror.liara.ir/repository/npm/" \
|
||||
--replace-registry-host=registry.npmjs.org
|
||||
--replace-registry-host=registry.npmjs.org \
|
||||
--include=optional
|
||||
|
||||
- name: Verify image optimizer dependency
|
||||
run: node -e "const sharp = require('sharp'); if (!sharp.format.webp.output) throw new Error('Sharp WebP output is unavailable')"
|
||||
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
|
||||
Reference in New Issue
Block a user