What if you. Wanted to luamin. But luamin said. Error: cannot find module 'lua-format'

This commit is contained in:
2026-04-30 16:29:40 +03:00
committed by GitHub
parent 895636a22e
commit e6436a8373
+5 -5
View File
@@ -27,9 +27,6 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Install luamin
run: npm install -g lua-format
- name: Switch to minified branch
run: git checkout minified
@@ -38,12 +35,15 @@ jobs:
git checkout main -- .
git reset HEAD
- name: Minify all Lua files
- name: Just do the whole damn thing
run: |
for file in $(find . -name "*.lua" -not -path "./.git/*"); do
cd .github/workflows
npm install lua-format
for file in $(find ../.. -name "*.lua" -not -path "../../.git/*"); do
echo $file
node .github/workflows/minify.js $file
done
cd ../..
- name: Commit and push to minified branch
run: |