Updated pnpm in workflows and Dockerfile
This commit is contained in:
@@ -26,7 +26,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: pnpm/action-setup@v2.2.4
|
- uses: pnpm/action-setup@v2.2.4
|
||||||
with:
|
with:
|
||||||
version: 7.9.3
|
version: 8.14.0
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|||||||
+2
-2
@@ -27,7 +27,7 @@ COPY package*.json ./
|
|||||||
COPY pnpm-lock.yaml ./
|
COPY pnpm-lock.yaml ./
|
||||||
|
|
||||||
# run npm install in our local machine
|
# run npm install in our local machine
|
||||||
RUN corepack enable && corepack prepare pnpm@8.6.1 --activate && pnpm i
|
RUN corepack enable && corepack prepare pnpm@8.14.0 --activate && pnpm i
|
||||||
|
|
||||||
# copy the generated modules and all other files to the container
|
# copy the generated modules and all other files to the container
|
||||||
COPY . .
|
COPY . .
|
||||||
@@ -43,7 +43,7 @@ FROM node:19-bullseye-slim
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /usr/src/app/package.json .
|
COPY --from=builder /usr/src/app/package.json .
|
||||||
COPY --from=builder /usr/src/app/pnpm-lock.yaml .
|
COPY --from=builder /usr/src/app/pnpm-lock.yaml .
|
||||||
RUN corepack enable && corepack prepare pnpm@8.6.1 --activate && pnpm i
|
RUN corepack enable && corepack prepare pnpm@8.14.0 --activate && pnpm i
|
||||||
# copy files from previous step
|
# copy files from previous step
|
||||||
COPY --from=builder /usr/src/app/build .
|
COPY --from=builder /usr/src/app/build .
|
||||||
COPY --from=builder /usr/src/app/node_modules ./node_modules
|
COPY --from=builder /usr/src/app/node_modules ./node_modules
|
||||||
|
|||||||
Reference in New Issue
Block a user