From 97cd8d4a684ad1e8683c49d76392a2a7f934df3d Mon Sep 17 00:00:00 2001 From: Ryogi Mutsuki <216100533+RyogiMutsuki@users.noreply.github.com> Date: Sat, 28 Jun 2025 19:19:24 +0800 Subject: [PATCH] chore(ci): skip postinstall scripts for some testing-only dependencies (#2442) --- .github/workflows/ci.yml | 3 +++ .github/workflows/release.yml | 3 +++ dockerfile | 2 ++ 3 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f78db47c..96c12ce3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,6 +55,9 @@ jobs: core: name: Build (Core) runs-on: ubuntu-latest + env: + REDISMS_DISABLE_POSTINSTALL: 1 + MONGOMS_DISABLE_POSTINSTALL: 1 steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7350134d..d577005c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,9 @@ jobs: build: name: Main Build runs-on: ubuntu-24.04 + env: + REDISMS_DISABLE_POSTINSTALL: 1 + MONGOMS_DISABLE_POSTINSTALL: 1 outputs: release_url: ${{ steps.create_release.outputs.upload_url }} steps: diff --git a/dockerfile b/dockerfile index 1eb87967..6cc3c838 100644 --- a/dockerfile +++ b/dockerfile @@ -1,4 +1,6 @@ FROM node:22-alpine as builder +ENV MONGOMS_DISABLE_POSTINSTALL=1 +ENV REDISMS_DISABLE_POSTINSTALL=1 WORKDIR /app COPY . . RUN apk add git make g++ alpine-sdk python3 py3-pip unzip