Skip to content

Commit dbae2c3

Browse files
committed
chore: update Dockerfile and CI workflows to use pnpm 10.28.0 and enable Corepack
1 parent ff77551 commit dbae2c3

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
name: Install pnpm
2828
id: pnpm-install
2929
with:
30-
version: 7
30+
version: 10
3131
run_install: false
3232

3333
- name: Get pnpm store directory

‎.github/workflows/pages-build-site.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
name: Install pnpm
3636
id: pnpm-install
3737
with:
38-
version: 7
38+
version: 10
3939
run_install: false
4040

4141
- name: Get pnpm store directory
@@ -78,7 +78,7 @@ jobs:
7878
name: Install pnpm
7979
id: pnpm-install
8080
with:
81-
version: 7
81+
version: 10
8282
run_install: false
8383

8484
- name: Get pnpm store directory

‎Dockerfile‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ ARG NODE_VERSION=22
22
FROM node:${NODE_VERSION} AS builder
33
WORKDIR /app
44

5-
# Install pnpm (Node.js image includes npm, so this is reliable)
6-
RUN npm install -g pnpm && \
5+
# Enable Corepack and install pnpm (Corepack reads packageManager from package.json)
6+
RUN corepack enable && \
7+
corepack prepare pnpm@10.28.0 --activate && \
78
pnpm --version
89

910
# Copy package files

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"engines": {
1717
"node": ">=20.19.0"
1818
},
19+
"packageManager": "pnpm@10.28.0",
1920
"keywords": [
2021
"onlyoffice",
2122
"document-editor",

0 commit comments

Comments
 (0)