feat: 添加JSON优化脚本

This commit is contained in:
lirtual 2024-12-21 21:58:50 +08:00
parent 0f71f0f3e4
commit be4209ab14
1 changed files with 5 additions and 2 deletions

View File

@ -45,13 +45,16 @@ jobs:
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
npm install sharp
npm install sharp glob
- name: Optimize Images
run: node scripts/optimize-images.js
- name: Optimize Audio
run: node scripts/optimize-audio.js
- name: Optimize JSON
run: node scripts/optimize-json.js
- name: Check for changes
id: check_changes
@ -69,4 +72,4 @@ jobs:
git config --local user.name "github-actions[bot]"
git add -A
git commit -m "Automatically optimize assets"
git push
git push