mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-12 19:30:30 +02:00
Removed unneccessary dependency install
This commit is contained in:
@@ -18,7 +18,7 @@ inputs:
|
||||
prettier_options:
|
||||
description: Options for the 'prettier' command
|
||||
required: false
|
||||
default: --write "**/*.js"
|
||||
default: "--write '**/*.js'"
|
||||
branch:
|
||||
description: Branch which the changes are merged to
|
||||
required: true
|
||||
|
||||
@@ -18,12 +18,13 @@ EOF
|
||||
git config --global user.name "GitHub Actions"
|
||||
}
|
||||
|
||||
echo "Installing dependencies..."
|
||||
npm install --silent
|
||||
echo "Installing prettier..."
|
||||
npm install --silent --global prettier
|
||||
echo "Prettifing files..."
|
||||
prettier $INPUT_PRETTIER_OPTIONS || echo "Problem prettifing your files"
|
||||
|
||||
ls
|
||||
|
||||
if ! git diff --quiet
|
||||
then
|
||||
echo "Commiting and pushing changes..."
|
||||
|
||||
Reference in New Issue
Block a user