mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-17 05:40:31 +02:00
Added silent execution for npm
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh -l
|
#!/bin/sh -l
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# Function for setting up git env in the docker container (copied from https://github.com/stefanzweifel/git-auto-commit-action/blob/master/entrypoint.sh)
|
# Function for setting up git env in the docker container (copied from https://github.com/stefanzweifel/git-auto-commit-action/blob/master/entrypoint.sh)
|
||||||
@@ -17,9 +16,10 @@ EOF
|
|||||||
git config --global user.email "actions@github.com"
|
git config --global user.email "actions@github.com"
|
||||||
git config --global user.name "GitHub Actions"
|
git config --global user.name "GitHub Actions"
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Installing dependencies..."
|
echo "Installing dependencies..."
|
||||||
npm install
|
npm install --silent
|
||||||
npm install --global prettier
|
npm install --silent --global prettier
|
||||||
echo "Prettifing files..."
|
echo "Prettifing files..."
|
||||||
prettier $INPUT_PRETTIER_OPTIONS
|
prettier $INPUT_PRETTIER_OPTIONS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user