[go: nahoru, domu]

Skip to content

Commit

Permalink
chore: disable husky at dockerfile level
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovicentegc committed Jan 3, 2024
1 parent 977fe66 commit 97b97a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ jobs:
context: .
file: ./Dockerfile
push: false
env:
HUSKY: 0
semantic-pr:
name: Validate PR title for semantic versioning
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM apify/actor-node-playwright-chrome:18 AS builder
COPY --chown=myuser package*.json ./

# Install all dependencies. Don't audit to speed up the installation.
RUN npm install --include=dev --audit=false
RUN HUSKY=0 npm install --include=dev --audit=false

# Next, copy the source files using the user set
# in the base image.
Expand All @@ -31,7 +31,8 @@ COPY --chown=myuser package*.json ./
# Install NPM packages, skip optional and development dependencies to
# keep the image small. Avoid logging too much and print the dependency
# tree for debugging
RUN npm --quiet set progress=false \
RUN HUSKY=0 \
npm --quiet set progress=false \
&& npm install --omit=dev --omit=optional \
&& echo "Installed NPM packages:" \
&& (npm list --omit=dev --all || true) \
Expand Down

0 comments on commit 97b97a5

Please sign in to comment.