Skip to content

Commit 97b23a1

Browse files
Merge pull request #2776 from devtron-labs/feat/update-yarn
feat: update yarn to 4.9.2
2 parents 7757538 + 266d9e7 commit 97b23a1

File tree

6 files changed

+13633
-8715
lines changed

6 files changed

+13633
-8715
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
cache: 'yarn'
2626

2727
- name: Install dependencies
28-
run: yarn install --frozen-lockfile
28+
run: yarn install --immutable
2929

3030
- name: Check linting issues
3131
run: yarn lint

.yarn/releases/yarn-4.9.2.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ FROM node:22-alpine AS builder
22

33
WORKDIR /app
44

5-
COPY package.json yarn.lock .
5+
RUN corepack enable yarn && \
6+
yarn set version 4.9.2
7+
8+
COPY package.json .
9+
COPY yarn.lock .
10+
COPY .yarn/ .yarn/
11+
COPY .yarnrc.yml ./
612

713
RUN apk add --no-cache git
8-
RUN yarn install --frozen-lockfile --network-timeout 600000
14+
RUN yarn install --immutable --network-timeout 600000
915

1016
COPY . .
1117

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,6 @@
138138
"rollup": "^4.22.4",
139139
"path-to-regexp": "^1.9.0",
140140
"cross-spawn": "^7.0.5"
141-
}
141+
},
142+
"packageManager": "[email protected]"
142143
}

0 commit comments

Comments
 (0)