Skip to content

GitHub Action to generate a text file asset containing all of the licenses for your production npm third-party dependencies.

License

Notifications You must be signed in to change notification settings

TobyAndToby/generate-license-file-github-action

Repository files navigation

generate-license-file GitHub Action

GitHub Action to generate a text file asset containing all of the licenses for your production npm third-party dependencies.

GitHub release (latest by date)

Based on the npm package generate-licence-file.

Usage

To run the Action, supply your package.json path as input, and your desired output file as output.

jobs:
  myJob:
    steps:
      - uses: actions/checkout@v2

      - uses: generate-licence-file@latest
        name: Generate License File
        with:
          input: "./package.json"
          output: "./third-party-licenses.txt"

You can also specify which line ending you would like it to use, either windows for crlf or posix for lf. If you don't supply one it will use the build agents default.

jobs:
  myJob:
    steps:
      - uses: actions/checkout@v2

      - uses: generate-licence-file@latest
        name: Generate License File
        with:
          input: "./package.json"
          output: "./third-party-licenses.txt"
          lineEnding: posix

Building the action yourself

npm install
npm run build

A Husky pre-commit hook will automatically build and commit the dist directory on each commit to ensure that the committed JavaScript code is always up to date.

License

generate-license-file-github-action is licensed under the ISC License.

About

GitHub Action to generate a text file asset containing all of the licenses for your production npm third-party dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published