diff --git a/entrypoint.sh b/entrypoint.sh index 0b9611c..8af4ba1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,10 +5,15 @@ cd "$GITHUB_WORKSPACE" export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}" # setup and check. -npm ci if npm ls textlint &> /dev/null; then - : # pass + : +else + npm ci +fi + +if npm ls textlint &> /dev/null; then + npx textlint --version else echo This repository was not configured for textlint, process done. exit 1