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

Commit

Permalink
chore(yarn): add .yarnrc file to avoid having to pass around --ignore…
Browse files Browse the repository at this point in the history
…-engines everywhere

This is required bc aoconnect encourages the use of npm over yarn.
  • Loading branch information
dtfiedler committed Aug 1, 2024
1 parent e35776c commit 83375fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit 83375fb

Please sign in to comment.