Merge pull request #223 from snapwiki/dependabot/npm_and_yarn/browser… #585
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Minify Mustache templates | |
| on: | |
| push: | |
| jobs: | |
| minify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: 20.x | |
| - name: Install minhtml | |
| run: npm install --global html-minifier-terser | |
| - name: Minify templates | |
| run: npm run minify | |
| - name: Commit changed files | |
| uses: stefanzweifel/git-auto-commit-action@v4 | |
| with: | |
| commit_message: "Minify Mustache templates" | |