Skip to content

Commit d34139c

Browse files
authored
chore: bump pnpm version (#645)
Signed-off-by: Bob Du <i@bobdu.cc>
1 parent 12a3d96 commit d34139c

File tree

6 files changed

+6759
-5626
lines changed

6 files changed

+6759
-5626
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ jobs:
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
@@ -38,9 +37,8 @@ jobs:
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

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ ARG RELEASE_VERSION=v0.0.0
77
ENV VITE_GIT_COMMIT_HASH=$GIT_COMMIT_HASH
88
ENV VITE_RELEASE_VERSION=$RELEASE_VERSION
99

10-
RUN npm install pnpm@8 -g
11-
1210
WORKDIR /app
1311

1412
COPY ./package.json /app
1513

1614
COPY ./pnpm-lock.yaml /app
1715

16+
RUN corepack enable
17+
1818
RUN pnpm install
1919

2020
COPY . /app
@@ -24,14 +24,14 @@ RUN pnpm run build
2424
# build backend
2525
FROM node:22-alpine AS backend
2626

27-
RUN npm install pnpm@8 -g
28-
2927
WORKDIR /app
3028

3129
COPY /service/package.json /app
3230

3331
COPY /service/pnpm-lock.yaml /app
3432

33+
RUN corepack enable
34+
3535
RUN pnpm install
3636

3737
COPY /service /app
@@ -43,14 +43,14 @@ FROM node:22-alpine
4343

4444
RUN apk add --no-cache tini
4545

46-
RUN npm install pnpm@8 -g
47-
4846
WORKDIR /app
4947

5048
COPY /service/package.json /app
5149

5250
COPY /service/pnpm-lock.yaml /app
5351

52+
RUN corepack enable
53+
5454
RUN pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/*
5555

5656
COPY /service /app

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,6 @@
6868
"*.{ts,tsx,vue}": [
6969
"pnpm lint:fix"
7070
]
71-
}
71+
},
72+
"packageManager": "pnpm@10.15.0+sha512.486ebc259d3e999a4e8691ce03b5cac4a71cbeca39372a9b762cb500cfdf0873e2cb16abe3d951b1ee2cf012503f027b98b6584e4df22524e0c7450d9ec7aa7b"
7273
}

0 commit comments

Comments
 (0)