fix(ci): add pnpm store prune to Dockerfile and post-deploy checks
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 6s
Build & Deploy / 🧪 QA (push) Successful in 2m30s
Build & Deploy / 🏗️ Build (push) Successful in 4m55s
Build & Deploy / 🚀 Deploy (push) Successful in 15s
Build & Deploy / 🔔 Notify (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled

Clear pnpm cache before installing dependencies in BuildKit and runner
to fix ERR_PNPM_TARBALL_INTEGRITY when internal packages are republished
with the same version.
This commit is contained in:
2026-02-27 02:43:17 +01:00
parent 3b45a967f7
commit b3057d8be0
2 changed files with 4 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
export NPM_TOKEN=$(cat /run/secrets/NPM_TOKEN) && \
echo "@mintel:registry=https://git.infra.mintel.me/api/packages/mmintel/npm" > .npmrc && \
echo "//git.infra.mintel.me/api/packages/mmintel/npm/:_authToken=\${NPM_TOKEN}" >> .npmrc && \
pnpm store prune && \
pnpm install --no-frozen-lockfile && \
rm .npmrc