Skip to content

Lint package.json

Actions
GitHub Action that lints a package.json file for packaging errors
v1.0.3
Latest
Star (0)

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

Lint package.json is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

GitHub Action that lints a package.json file for packaging errors
v1.0.3
Latest

Lint package.json is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.