Skip to content

Commit 97cd8d4

Browse files
authored
chore(ci): skip postinstall scripts for some testing-only dependencies (#2442)
1 parent f369e9c commit 97cd8d4

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
core:
5656
name: Build (Core)
5757
runs-on: ubuntu-latest
58+
env:
59+
REDISMS_DISABLE_POSTINSTALL: 1
60+
MONGOMS_DISABLE_POSTINSTALL: 1
5861
steps:
5962
- name: Checkout
6063
uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
build:
1111
name: Main Build
1212
runs-on: ubuntu-24.04
13+
env:
14+
REDISMS_DISABLE_POSTINSTALL: 1
15+
MONGOMS_DISABLE_POSTINSTALL: 1
1316
outputs:
1417
release_url: ${{ steps.create_release.outputs.upload_url }}
1518
steps:

dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
FROM node:22-alpine as builder
2+
ENV MONGOMS_DISABLE_POSTINSTALL=1
3+
ENV REDISMS_DISABLE_POSTINSTALL=1
24
WORKDIR /app
35
COPY . .
46
RUN apk add git make g++ alpine-sdk python3 py3-pip unzip

0 commit comments

Comments
 (0)