mirror of
https://github.com/creyD/prettier_action.git
synced 2026-04-16 21:30: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
|
FROM node:latest
|
||||||
COPY entrypoint.sh ./entrypoint.sh
|
COPY entrypoint.sh ./entrypoint.sh
|
||||||
COPY package*.json ./
|
|
||||||
RUN npm install
|
|
||||||
ENTRYPOINT ["./entrypoint.sh"]
|
ENTRYPOINT ["./entrypoint.sh"]
|
||||||
|
|||||||
@@ -17,7 +17,8 @@ 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..."
|
||||||
|
npm install
|
||||||
echo "Prettifing files..."
|
echo "Prettifing files..."
|
||||||
prettier $INPUT_PRETTIER_OPTIONS
|
prettier $INPUT_PRETTIER_OPTIONS
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user