Skip to content

Commit

Permalink
Use npx instead of npm install.
Browse files Browse the repository at this point in the history
  • Loading branch information
theahura committed Dec 14, 2021
1 parent 4a77bfb commit b260a76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ LABEL "repository"="https://github.com/theahura/depcheck-action"
LABEL "homepage"="https://github.com/theahura/depcheck-action"
LABEL "maintainer"="Amol Kapoor <[email protected]>"

RUN npm install -g depcheck

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 $*"

0 comments on commit b260a76

Please sign in to comment.