🛠️ Update CI workflow to check SVGs and add data check script

This commit is contained in:
pheralb
2025-10-02 16:30:46 +01:00
parent 488813af2c
commit bd6ce410bc
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -28,9 +28,9 @@ jobs:
env:
PUBLIC_SVGL_VERSION: v5
svgs-size:
check-svgs:
runs-on: ubuntu-latest
name: 📦 SVGs Size
name: 📦 Check SVGs
steps:
- uses: actions/checkout@v4
@@ -42,3 +42,6 @@ jobs:
- name: Check SVGs size
run: pnpm check:size
- name: Check unused SVGs
run: pnpm check:data
+1
View File
@@ -33,6 +33,7 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"check:size": "tsx ./utils/check-size.ts",
"check:data": "tsx ./utils/check-data.ts",
"check:links": " lychee --base . ./src/data/svgs.ts --cache --max-cache-age 3d . --include 'https://svgl.app'",
"fix:viewbox": "tsx ./utils/fix-viewbox.ts",
"format": "prettier --write \"src/**/*.{ts,js,md,svelte}\" --cache",