Skip to content

Minify-JS Action

Actions
Github action to minify html, javascript and css files
v1.0.1
Latest
Star (6)

Minify-JS Action

Package Managers

License

MIT License

Version

GitHub Release

Github action to minify html, javascript and css files, using minify.

Usage

First you need to check out your repository, then configure the Minify-JS job, at the end you can commit to your repository. Below is an example of how to do all of this.

name: Minify Workflow
on:
  push:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      # Checks-out your repository
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.ref }}

      # Job for Minify-JS
      - name: Minify-JS Action
        uses: jossydevers/[email protected]
        with:
          directory: 'src/component.js' # (OPTIONAL)
          output: 'minify/src/' # (OPTIONAL)
          
      # Auto-commit to repository
      - uses: stefanzweifel/git-auto-commit-action@v4
        with:
          commit_message: 'Minify-JS : Commit Pipeline'
          branch: ${{ github.ref }}

Minify-JS Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github action to minify html, javascript and css files
v1.0.1
Latest

Minify-JS Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.