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 $*"