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 1818 - uses : actions/setup-node@v4
1919 with :
2020 node-version : 22
21- - uses : pnpm/action-setup@v4
22- with :
23- version : 8
21+ - name : Enable corepack
22+ run : corepack enable
2423 - name : Install dependencies
2524 run : pnpm install
2625 - name : Lint
3837 - uses : actions/setup-node@v4
3938 with :
4039 node-version : 22
41- - uses : pnpm/action-setup@v4
42- with :
43- version : 8
40+ - name : Enable corepack
41+ run : corepack enable
4442 - name : Install dependencies
4543 run : pnpm install
4644 - name : Typecheck
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ ARG RELEASE_VERSION=v0.0.0
77ENV VITE_GIT_COMMIT_HASH=$GIT_COMMIT_HASH
88ENV VITE_RELEASE_VERSION=$RELEASE_VERSION
99
10- RUN npm install pnpm@8 -g
11-
1210WORKDIR /app
1311
1412COPY ./package.json /app
1513
1614COPY ./pnpm-lock.yaml /app
1715
16+ RUN corepack enable
17+
1818RUN pnpm install
1919
2020COPY . /app
@@ -24,14 +24,14 @@ RUN pnpm run build
2424# build backend
2525FROM node:22-alpine AS backend
2626
27- RUN npm install pnpm@8 -g
28-
2927WORKDIR /app
3028
3129COPY /service/package.json /app
3230
3331COPY /service/pnpm-lock.yaml /app
3432
33+ RUN corepack enable
34+
3535RUN pnpm install
3636
3737COPY /service /app
@@ -43,14 +43,14 @@ FROM node:22-alpine
4343
4444RUN apk add --no-cache tini
4545
46- RUN npm install pnpm@8 -g
47-
4846WORKDIR /app
4947
5048COPY /service/package.json /app
5149
5250COPY /service/pnpm-lock.yaml /app
5351
52+ RUN corepack enable
53+
5454RUN pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/*
5555
5656COPY /service /app
Original file line number Diff line number Diff line change 6868 "*.{ts,tsx,vue}" : [
6969 " pnpm lint:fix"
7070 ]
71- }
71+ },
72+ "packageManager" : " pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b"
7273}
You can’t perform that action at this time.
0 commit comments