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: core:
name: Build (Core) name: Build (Core)
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
REDISMS_DISABLE_POSTINSTALL: 1
MONGOMS_DISABLE_POSTINSTALL: 1
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@@ -10,6 +10,9 @@ jobs:
build: build:
name: Main Build name: Main Build
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
env:
REDISMS_DISABLE_POSTINSTALL: 1
MONGOMS_DISABLE_POSTINSTALL: 1
outputs: outputs:
release_url: ${{ steps.create_release.outputs.upload_url }} release_url: ${{ steps.create_release.outputs.upload_url }}
steps: steps:

View File

@@ -1,4 +1,6 @@
FROM node:22-alpine as builder FROM node:22-alpine as builder
ENV MONGOMS_DISABLE_POSTINSTALL=1
ENV REDISMS_DISABLE_POSTINSTALL=1
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN apk add git make g++ alpine-sdk python3 py3-pip unzip RUN apk add git make g++ alpine-sdk python3 py3-pip unzip