Skip to content

Commit 4a53b3d

Browse files
committed
feat: add npm version installation step in CI workflows and Dockerfile
1 parent 922b904 commit 4a53b3d

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/trpc-integration-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ jobs:
4646
node-version: 22
4747
cache: npm
4848

49+
- name: Use repo npm version
50+
run: npm install -g "$(node -p 'require("./package.json").packageManager')" && npm --version
51+
4952
- name: Install dependencies
5053
run: npm ci
5154

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
with:
2626
node-version: 22
2727

28+
- name: Use repo npm version
29+
run: npm install -g "$(node -p 'require("./package.json").packageManager')" && npm --version
30+
2831
- name: Install dependencies
2932
run: npm ci
3033

Dockerfile.ci

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ ENV NODE_OPTIONS=--experimental-wasm-modules
2424
COPY package.json package-lock.json* ./
2525
COPY prisma ./prisma
2626
COPY prisma.config.ts ./
27+
RUN npm install -g "$(node -p 'require("./package.json").packageManager')" \
28+
&& npm --version
2729
RUN npm ci
2830

2931
# Copy full source for containerized CI runs.

0 commit comments

Comments
 (0)