File tree Expand file tree Collapse file tree 6 files changed +6759
-5626
lines changed Expand file tree Collapse file tree 6 files changed +6759
-5626
lines changed Original file line number Diff line number Diff line change 18
18
- uses : actions/setup-node@v4
19
19
with :
20
20
node-version : 22
21
- - uses : pnpm/action-setup@v4
22
- with :
23
- version : 8
21
+ - name : Enable corepack
22
+ run : corepack enable
24
23
- name : Install dependencies
25
24
run : pnpm install
26
25
- name : Lint
38
37
- uses : actions/setup-node@v4
39
38
with :
40
39
node-version : 22
41
- - uses : pnpm/action-setup@v4
42
- with :
43
- version : 8
40
+ - name : Enable corepack
41
+ run : corepack enable
44
42
- name : Install dependencies
45
43
run : pnpm install
46
44
- name : Typecheck
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ ARG RELEASE_VERSION=v0.0.0
7
7
ENV VITE_GIT_COMMIT_HASH=$GIT_COMMIT_HASH
8
8
ENV VITE_RELEASE_VERSION=$RELEASE_VERSION
9
9
10
- RUN npm install pnpm@8 -g
11
-
12
10
WORKDIR /app
13
11
14
12
COPY ./package.json /app
15
13
16
14
COPY ./pnpm-lock.yaml /app
17
15
16
+ RUN corepack enable
17
+
18
18
RUN pnpm install
19
19
20
20
COPY . /app
@@ -24,14 +24,14 @@ RUN pnpm run build
24
24
# build backend
25
25
FROM node:22-alpine AS backend
26
26
27
- RUN npm install pnpm@8 -g
28
-
29
27
WORKDIR /app
30
28
31
29
COPY /service/package.json /app
32
30
33
31
COPY /service/pnpm-lock.yaml /app
34
32
33
+ RUN corepack enable
34
+
35
35
RUN pnpm install
36
36
37
37
COPY /service /app
@@ -43,14 +43,14 @@ FROM node:22-alpine
43
43
44
44
RUN apk add --no-cache tini
45
45
46
- RUN npm install pnpm@8 -g
47
-
48
46
WORKDIR /app
49
47
50
48
COPY /service/package.json /app
51
49
52
50
COPY /service/pnpm-lock.yaml /app
53
51
52
+ RUN corepack enable
53
+
54
54
RUN pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/*
55
55
56
56
COPY /service /app
Original file line number Diff line number Diff line change 68
68
"*.{ts,tsx,vue}" : [
69
69
" pnpm lint:fix"
70
70
]
71
- }
71
+ },
72
+ "packageManager" : " pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b"
72
73
}
You can’t perform that action at this time.
0 commit comments