mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 13:59:27 +02:00
feat: 添加JSON优化脚本
This commit is contained in:
parent
0f71f0f3e4
commit
be4209ab14
7
.github/workflows/optimize-assets.yml
vendored
7
.github/workflows/optimize-assets.yml
vendored
@ -45,13 +45,16 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
if: steps.cache-node-modules.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
npm install sharp
|
npm install sharp glob
|
||||||
|
|
||||||
- name: Optimize Images
|
- name: Optimize Images
|
||||||
run: node scripts/optimize-images.js
|
run: node scripts/optimize-images.js
|
||||||
|
|
||||||
- name: Optimize Audio
|
- name: Optimize Audio
|
||||||
run: node scripts/optimize-audio.js
|
run: node scripts/optimize-audio.js
|
||||||
|
|
||||||
|
- name: Optimize JSON
|
||||||
|
run: node scripts/optimize-json.js
|
||||||
|
|
||||||
- name: Check for changes
|
- name: Check for changes
|
||||||
id: check_changes
|
id: check_changes
|
||||||
@ -69,4 +72,4 @@ jobs:
|
|||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "Automatically optimize assets"
|
git commit -m "Automatically optimize assets"
|
||||||
git push
|
git push
|
Loading…
Reference in New Issue
Block a user