Skip to content

GitHub Action that lints a package.json file for packaging errors using Publint

License

Notifications You must be signed in to change notification settings

kirkeaton/action-publint

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

action-publint

GitHub Action that lints a package.json file for packaging errors using Publint.

Usage

See action.yml

- uses: kirkeaton/action-publint@v1
  with:
    # The level of messages to log.
    # - suggestion: logs all messages
    # - warning: logs only warning and error messages
    # - error: logs only error messages
    # Default: 'suggestion'
    level: ''

    # Path to your package that contains a package.json file.
    # Default: '.'
    pkg-dir: ''

    # Report warnings as errors.
    # Default: false
    strict: ''

Basic:

steps:
  - uses: actions/checkout@v4
  - uses: actions/setup-node@v4
  - run: npm ci
  - run: npm run build
  - uses: kirkeaton/action-publint@v1

About

GitHub Action that lints a package.json file for packaging errors using Publint

Resources

License

Stars

Watchers

Forks