Fixed a bug where the package*.json couldn't be found

This commit is contained in:
2020-01-10 10:35:54 +01:00
parent b818ff48fe
commit 123c5011f1
2 changed files with 2 additions and 3 deletions

View File

@@ -1,5 +1,3 @@
FROM node:latest
COPY entrypoint.sh ./entrypoint.sh
COPY package*.json ./
RUN npm install
ENTRYPOINT ["./entrypoint.sh"]

View File

@@ -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