Skip to content

Commit

Permalink
fix: Corepack Error (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-robitaille authored Feb 3, 2025
1 parent 97ea8ba commit 91d3b6a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
}
},
"appPort": [3001],
"postCreateCommand": "corepack enable pnpm && pnpm config set store-dir /home/vscode/pnpm/store && corepack use pnpm@9.6.0 && pnpm install",
"postCreateCommand": "npm i -g corepack@latest && corepack enable pnpm && pnpm config set store-dir /home/vscode/pnpm/store && corepack use pnpm@9.15.5 && pnpm install",
"remoteUser": "vscode"
}
4 changes: 2 additions & 2 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
with:
node-version: "22.5.1"

- name: PNPM update to v9.6.0
run: corepack enable pnpm && corepack use pnpm@9.6.0
- name: PNPM update to v9.15.5
run: npm i -g corepack@latest && corepack enable pnpm && corepack use pnpm@9.15.5

- name: Install dependencies
run: pnpm install --frozen-lockfile
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG NODE_VERSION=22.12.0-alpine3.19@sha256:40dc4b415c17b85bea9be05314b4a753f45a4e1716bb31c01182e6c53d51a654
ARG PNPM_VERSION=9.6.0
ARG PNPM_VERSION=9.15.5

FROM node:$NODE_VERSION AS build
ARG PNPM_VERSION
Expand All @@ -8,7 +8,8 @@ WORKDIR /src

COPY package.json pnpm-lock.yaml ./

RUN corepack enable pnpm &&\
RUN npm i -g corepack@latest &&\
corepack enable pnpm &&\
corepack use pnpm@$PNPM_VERSION &&\
pnpm install --frozen-lockfile

Expand All @@ -26,7 +27,8 @@ COPY package.json pnpm-lock.yaml ./
COPY --from=build /src/node_modules ./node_modules
COPY --from=build /src/build ./build

RUN corepack enable pnpm &&\
RUN npm i -g corepack@latest &&\
corepack enable pnpm &&\
corepack use pnpm@$PNPM_VERSION

EXPOSE 3001
Expand Down

0 comments on commit 91d3b6a

Please sign in to comment.