From 99aed6410d4c4b29779d53ced2402e58760fef4c Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Wed, 1 Jun 2022 14:09:59 +0100 Subject: [PATCH] fix(ci): use pnpm ci instead of pnpm install --- server/.github/workflows/test-build-deploy.yml | 2 +- server/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/.github/workflows/test-build-deploy.yml b/server/.github/workflows/test-build-deploy.yml index b0833530a..6ba63da6c 100644 --- a/server/.github/workflows/test-build-deploy.yml +++ b/server/.github/workflows/test-build-deploy.yml @@ -28,7 +28,7 @@ jobs: version: 6.0.2 - name: Install Dependencies - run: pnpm i + run: pnpm ci # configure external dbs - uses: supercharge/mongodb-github-action@1.4.1 diff --git a/server/Dockerfile b/server/Dockerfile index 8fa52f663..6e92b6206 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app COPY --chown=node:node . /app RUN npm install --silent -g pnpm@6 && groupmod -g 1003 node && chown node:node /app USER node -RUN pnpm install --silent --frozen-lockfile && pnpm build && pnpm prune --silent --production && pnpm store prune --silent +RUN pnpm ci --silent --frozen-lockfile && pnpm build && pnpm prune --silent --production && pnpm store prune --silent HEALTHCHECK --interval=15s --timeout=5s CMD curl -f http://localhost:8080/api/v1/status || exit 1 ENV NODE_PATH=js/ CMD ["node", "js/main.js"]