From b260a76c02a46b56da9f7b3367f3b22b54770608 Mon Sep 17 00:00:00 2001 From: Amol Kapoor Date: Tue, 14 Dec 2021 17:41:40 -0500 Subject: [PATCH] Use npx instead of npm install. --- Dockerfile | 2 -- entrypoint.sh | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a4a9c45..8859c81 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,6 @@ LABEL "repository"="https://github.com/theahura/depcheck-action" LABEL "homepage"="https://github.com/theahura/depcheck-action" LABEL "maintainer"="Amol Kapoor " -RUN npm install -g depcheck - COPY entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index bd44e97..5000965 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,5 +2,4 @@ set -e echo "Checking deps for $GITHUB_REPOSITORY from $GITHUB_WORKSPACE" -sh -c "depcheck --version" -sh -c "depcheck $GITHUB_WORKSPACE $*" +sh -c "npx depcheck $GITHUB_WORKSPACE $*"