Skip to content

move minify workflow to own file #1

move minify workflow to own file

move minify workflow to own file #1

name: Minify package
on:
push:
branches: [ "main" ]
jobs:
minify:
runs-on: ubuntu-latest
steps:
- name: check out the repository
uses: actions/checkout@v4
- name: auto minify the files
uses: nizarmah/auto-minify@v3
with:
directory: ./src
output: ./dist
js_engine: uglify-js
- name: auto commit the minified files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "bot: Add auto minified files"