From 6a7b2d092fb71cc879c89c0f95a2d3c00f08b3f8 Mon Sep 17 00:00:00 2001 From: Derek Ditch Date: Mon, 9 Jun 2025 16:43:18 -0500 Subject: [PATCH] Use npx to execute prettier (#145) * fix: bumped version in readme * Use npx to execute prettier Fixes: https://github.com/creyD/prettier_action/issues/113 --------- Co-authored-by: Conrad --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 00e1efd..ec9b329 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -66,7 +66,7 @@ fi PRETTIER_RESULT=0 echo "Prettifying files..." echo "Files:" -prettier $INPUT_PRETTIER_OPTIONS \ +npx prettier $INPUT_PRETTIER_OPTIONS \ || { PRETTIER_RESULT=$?; echo "Problem running prettier with $INPUT_PRETTIER_OPTIONS"; exit 1; } >> $GITHUB_STEP_SUMMARY echo "Prettier result: $PRETTIER_RESULT"