Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 769 Bytes

README.md

File metadata and controls

37 lines (29 loc) · 769 Bytes

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