chore(ci): skip postinstall scripts for some testing-only dependencies (#2442)

This commit is contained in:
Ryogi Mutsuki
2025-06-28 19:19:24 +08:00
committed by GitHub
parent f369e9c942
commit 97cd8d4a68
3 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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:

View File

@@ -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