Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update yarn to v4 #632

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ jobs:

- name: Configure Node and package manager
uses: actions/[email protected]
env:
SKIP_YARN_COREPACK_CHECK: true
with:
node-version-file: 'package.json'
cache: 'yarn'

- name: Enable corepack
run: corepack enable

- name: Install dependencies
run: yarn install --immutable

Expand Down
875 changes: 0 additions & 875 deletions .yarn/releases/yarn-3.7.0.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
enableGlobalCache: true

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.7.0.cjs
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ FROM node:20.9.0-alpine AS base

WORKDIR /app

# enable corepack
RUN corepack enable

FROM base AS builder

# one of dependencies uses node-gyp which requires build tools
RUN apk add --update --no-cache python3 g++ make && ln -sf python3 /usr/bin/python

# get the dependencies and sources
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn ./.yarn
COPY src ./src
COPY tsconfig.json ./

Expand All @@ -30,7 +32,6 @@ ENV NODE_ENV production

# get the dependencies and sources
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn ./.yarn
# install the production dependencies only (depends on NODE_ENV)
RUN yarn install --immutable && yarn cache clean --all

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@
"outputFormat": "esmodule"
}
},
"packageManager": "yarn@3.7.0"
"packageManager": "yarn@4.0.2"
}
Loading