mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-15 12:50:31 +02:00
Removed unneccessary dependency install
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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..."
|
||||||
|
|||||||
Reference in New Issue
Block a user