fix(ci): restore npm mirror for dependency installs
ci/woodpecker/push/woodpecker Pipeline was canceled

This commit is contained in:
shishengliang
2026-09-16 10:46:05 +08:00
parent dae727dfde
commit 17b084ce62
2 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
RUN npm ci --registry=https://registry.npmmirror.com/ --no-audit --no-fund
COPY . .
RUN npm run build
@@ -10,7 +10,7 @@ FROM node:22-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
RUN npm ci --omit=dev --registry=https://registry.npmmirror.com/ --no-audit --no-fund
COPY --from=builder /app/dist ./dist
COPY src/server ./src/server
COPY src/shared ./src/shared
+5 -2
View File
@@ -12,8 +12,11 @@ steps:
- main
- feature/asset-statistics
commands: |
cd $CI_WORKSPACE
npm ci
set -eu
cd "$CI_WORKSPACE"
node --version
npm --version
npm ci --registry=https://registry.npmmirror.com/ --no-audit --no-fund --loglevel=verbose
npm run lint
npm test
npm run build