Skip to content
package

GitHub Action

Check Deprecated Dependencies

release Latest version

Check Deprecated Dependencies

package

Check Deprecated Dependencies

Checking for deprecated JavaScript dependencies

Installation

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

              

- name: Check Deprecated Dependencies

uses: tinovyatkin/action-check-deprecated-js-deps@release

Learn more about this action in tinovyatkin/action-check-deprecated-js-deps

Choose a version

action-check-deprecated-js-deps status

GitHub Action that check JavaScript dependencies deprecations

NPM deprecated packages is sometimes even bigger security or stability risk for a project than known vulnerabilities (that have a lot of monitoring tools). However, there is no easy way to check for deprecation as both npm outdated nor yarn outdated says nothing about deprecated packages.

You may see NPM warning on first install of that package, but those warning can be easily lost in a lot of log messages during install or even will not appear for a mature project.

This action checks for all project dependencies (dependencies, devDependencies and resolutions) and fails the action if a deprecated dependency found:

screenshot of action run

Compatible with Yarn and Lerna monorepos.

Usage

uses: tinovyatkin/action-check-deprecated-js-deps@v1
with:
  ignore: css-mqpacker # you can optionally ignore some deprecations
  root: packages # optionally specify a root folder to search for package.jsons

See the actions tab for runs of this action! 🚀