mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-12 11:20:30 +02:00
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 <grosserconrad@gmail.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user