Skip to content
play

GitHub Action

Check Node Dependencies and Comment

v1.1.3 Latest version

Check Node Dependencies and Comment

play

Check Node Dependencies and Comment

Check node.js dependencies and comment on a pull request

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Check Node Dependencies and Comment

uses: hjfitz/depcheck-comment@v1.1.3

Learn more about this action in hjfitz/depcheck-comment

Choose a version

🤖💬 Depcheck Comment

Scan a pull request to see if any dependencies are unused

Use this GitHub Action to scan a pull request and check if any dependencies are unused. This can help with things like primitive bundling and WebApp deployment times.

Prerequisites: None!


Sample action.yml file:

name: Depcheck

on: pull_request

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: hjfitz/depcheck-comment@master
        with:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}