Skip to content

Commit e61f4ce

Browse files
committed
Manage pnpm version using packageManager field.
1 parent 81a5a9a commit e61f4ce

File tree

6 files changed

+4
-27
lines changed

6 files changed

+4
-27
lines changed

.github/workflows/development_image_release.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ jobs:
3737

3838
- uses: pnpm/action-setup@v4
3939
name: Install pnpm
40-
with:
41-
version: 9
42-
run_install: false
4340

4441
- name: Get pnpm store directory
4542
shell: bash

.github/workflows/development_packages_release.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ jobs:
2323

2424
- uses: pnpm/action-setup@v4
2525
name: Install pnpm
26-
with:
27-
version: 9
28-
run_install: false
2926

3027
- name: Get pnpm store directory
3128
shell: bash

.github/workflows/packages_release.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ jobs:
2424

2525
- uses: pnpm/action-setup@v4
2626
name: Install pnpm
27-
with:
28-
version: 9
29-
run_install: false
3027

3128
- name: Get pnpm store directory
3229
shell: bash

.github/workflows/test.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ jobs:
5151

5252
- uses: pnpm/action-setup@v4
5353
name: Install pnpm
54-
with:
55-
version: 9
56-
run_install: false
5754

5855
- name: Get pnpm store directory
5956
shell: bash
@@ -129,9 +126,6 @@ jobs:
129126

130127
- uses: pnpm/action-setup@v4
131128
name: Install pnpm
132-
with:
133-
version: 9
134-
run_install: false
135129

136130
- name: Get pnpm store directory
137131
shell: bash
@@ -207,9 +201,6 @@ jobs:
207201

208202
- uses: pnpm/action-setup@v4
209203
name: Install pnpm
210-
with:
211-
version: 9
212-
run_install: false
213204

214205
- name: Get pnpm store directory
215206
shell: bash
@@ -272,9 +263,6 @@ jobs:
272263

273264
- uses: pnpm/action-setup@v4
274265
name: Install pnpm
275-
with:
276-
version: 9
277-
run_install: false
278266

279267
- name: Get pnpm store directory
280268
shell: bash

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@
4040
"vite-tsconfig-paths": "^4.3.2",
4141
"vitest": "^2.1.1",
4242
"ws": "^8.2.3"
43-
}
43+
},
44+
"packageManager": "[email protected]+sha512.845196026aab1cc3f098a0474b64dfbab2afe7a1b4e91dd86895d8e4aa32a7a6d03049e2d0ad770bbe4de023a7122fb68c1a1d6e0d033c7076085f9d5d4800d4"
4445
}

service/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
FROM node:22.14.0 AS builder
22
WORKDIR /app
33

4-
RUN npm i -g pnpm@9
5-
64
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml tsconfig.base.json ./
75
COPY service/package.json service/tsconfig.json service/
86

@@ -24,6 +22,7 @@ COPY modules/module-mongodb/package.json modules/module-mongodb/tsconfig.json mo
2422
COPY modules/module-mongodb-storage/package.json modules/module-mongodb-storage/tsconfig.json modules/module-mongodb-storage/
2523
COPY modules/module-mysql/package.json modules/module-mysql/tsconfig.json modules/module-mysql/
2624

25+
RUN corepack enable pnpm && corepack install
2726
RUN pnpm install --frozen-lockfile
2827

2928
COPY service/src service/src/
@@ -60,11 +59,9 @@ WORKDIR /app
6059

6160
COPY --from=builder /app/ ./
6261

63-
RUN npm i -g pnpm@9
64-
62+
RUN corepack enable pnpm && corepack install
6563
RUN pnpm install --frozen-lockfile
6664

67-
6865
CMD pnpm test
6966

7067
# === PROD ===

0 commit comments

Comments
 (0)