From f2815aa5b35ca9432ff9657a5d8cca2759dea819 Mon Sep 17 00:00:00 2001 From: Tsuyoshi CHO Date: Sat, 24 Oct 2020 00:30:37 +0900 Subject: [PATCH] fix for install --- entrypoint.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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