Skip to content
edit

GitHub Action

Inject copyright

v2 Latest version

Inject copyright

edit

Inject copyright

Inject copyright info into css and js files in your dist folder

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Inject copyright

uses: bndynet/github-action-inject-copyright@v2

Learn more about this action in bndynet/github-action-inject-copyright

Choose a version

Inject copyright and version

Inject author, version and license informations that is from package.json file into css and js files.

    - name: Build
      run: npm run build

    - name: Inject copyright and version
      uses: bndynet/github-action-inject-copyright@v2
      with:
        dist: dist  # optional, default is dist folder

IMPORTANT

Before commit, please run npm run all and commit all files.

This project is based on https://github.com/actions/typescript-action