feat: 添加JSON优化脚本
This commit is contained in:
parent
0f71f0f3e4
commit
be4209ab14
|
@ -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
|
Loading…
Reference in New Issue