Removed unneccessary dependency install

This commit is contained in:
2020-01-24 12:44:10 +01:00
parent 7524f50124
commit cbf12d08d5
2 changed files with 4 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ inputs:
prettier_options: prettier_options:
description: Options for the 'prettier' command description: Options for the 'prettier' command
required: false required: false
default: --write "**/*.js" default: "--write '**/*.js'"
branch: branch:
description: Branch which the changes are merged to description: Branch which the changes are merged to
required: true required: true

View File

@@ -18,12 +18,13 @@ EOF
git config --global user.name "GitHub Actions" git config --global user.name "GitHub Actions"
} }
echo "Installing dependencies..." echo "Installing prettier..."
npm install --silent
npm install --silent --global prettier npm install --silent --global prettier
echo "Prettifing files..." echo "Prettifing files..."
prettier $INPUT_PRETTIER_OPTIONS || echo "Problem prettifing your files" prettier $INPUT_PRETTIER_OPTIONS || echo "Problem prettifing your files"
ls
if ! git diff --quiet if ! git diff --quiet
then then
echo "Commiting and pushing changes..." echo "Commiting and pushing changes..."