fix(ci): perfectly orchestrate dynamic monorepo compile sequence prior to test and deploy
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 7s
Build & Deploy / 🧪 QA (push) Failing after 33s
Build & Deploy / 🏗️ Build (push) Has been skipped
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 1s

This commit is contained in:
2026-03-01 09:03:33 +01:00
parent c167e36626
commit 5cbbd81384
3 changed files with 19 additions and 11 deletions

View File

@@ -25,10 +25,12 @@ COPY _at-mintel* /at-mintel/
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
--mount=type=secret,id=NPM_TOKEN \
export NPM_TOKEN=$(cat /run/secrets/NPM_TOKEN 2>/dev/null || echo $NPM_TOKEN) && \
echo "@mintel:registry=https://npm.infra.mintel.me" > .npmrc && \
echo "//npm.infra.mintel.me/:_authToken=\${NPM_TOKEN}" >> .npmrc && \
pnpm install --frozen-lockfile && \
rm .npmrc
echo "@mintel:registry=https://npm.infra.mintel.me" > /at-mintel/.npmrc && \
echo "//npm.infra.mintel.me/:_authToken=\${NPM_TOKEN}" >> /at-mintel/.npmrc && \
cp /at-mintel/.npmrc .npmrc && \
cd /at-mintel && pnpm install && npx turbo run build && \
cd /app && pnpm install --no-frozen-lockfile && \
rm /at-mintel/.npmrc .npmrc
# Copy source code
COPY . .