Skip to content

Inject project information like name, author, version and license into your css and js files.

License

Notifications You must be signed in to change notification settings

bndynet/github-action-inject-copyright

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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