Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

chore(yarn): add .yarnrc file to avoid having to pass around --ignore-engines everywhere #16

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ jobs:
with:
node-version-file: .nvmrc
cache: 'yarn'
- run: yarn --immutable --immutable-cache --ignore-engines
- run: yarn
- run: yarn --immutable --immutable-cache
- run: yarn ${{ matrix.step }}

push:
Expand Down
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-engines true
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ FROM node:${NODE_VERSION}-bullseye-slim AS builder
# Build
WORKDIR /app
COPY . .
RUN yarn --ignore-engines && yarn build
RUN rm-rf node_modules & yarn install --force --ignore-engines
RUN yarn && yarn build
RUN rm-rf node_modules & yarn install --force

# Runtime
FROM gcr.io/distroless/nodejs${NODE_VERSION_SHORT}-debian11
Expand Down