mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-13 11:50:31 +02:00
Fixed a bug where the package*.json couldn't be found
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
FROM node:latest
|
||||
COPY entrypoint.sh ./entrypoint.sh
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
ENTRYPOINT ["./entrypoint.sh"]
|
||||
|
||||
@@ -17,7 +17,8 @@ EOF
|
||||
git config --global user.email "actions@github.com"
|
||||
git config --global user.name "GitHub Actions"
|
||||
}
|
||||
|
||||
echo "Installing dependencies..."
|
||||
npm install
|
||||
echo "Prettifing files..."
|
||||
prettier $INPUT_PRETTIER_OPTIONS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user