FIX: minify
This commit is contained in:
7
.github/workflows/minify.yml
vendored
7
.github/workflows/minify.yml
vendored
@@ -10,6 +10,9 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: build
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
@@ -17,6 +20,9 @@ jobs:
|
||||
- name: Install dependencies.
|
||||
run: npm i -g terser csso-cli html-minifier
|
||||
|
||||
- name: Copy over changes.
|
||||
run: git merge -s theirs main
|
||||
|
||||
- name: Minify files.
|
||||
run: |
|
||||
for i in `find . -name "*.js" -type f`; do terser $i --compress -o $i; done
|
||||
@@ -35,4 +41,3 @@ jobs:
|
||||
assignees: MajorDroolz
|
||||
reviewers: MajorDroolz
|
||||
branch: temp
|
||||
base: build
|
||||
|
||||
Reference in New Issue
Block a user