diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index 8ea4f31e..7e7e94da 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v3 with: - version: 9 + version: 10 - uses: actions/setup-node@v4 with: node-version-file: "package.json" diff --git a/.github/workflows/tests-and-checks.yml b/.github/workflows/tests-and-checks.yml index bb1cdfcc..001fa370 100644 --- a/.github/workflows/tests-and-checks.yml +++ b/.github/workflows/tests-and-checks.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v4 - uses: pnpm/action-setup@v3 with: - version: 9 + version: 10 - uses: actions/setup-node@v4 with: node-version-file: "package.json" diff --git a/Dockerfile b/Dockerfile index 56369a5f..dbf57a94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,10 @@ WORKDIR /workspace RUN apk add --update --no-cache openssl python3 make g++ # Install pnpm. ADD package.json . +# TODO: Remove this once it's no longer needed. +# - https://github.com/pnpm/pnpm/issues/9014#issuecomment-2618565344 +# - https://github.com/nodejs/corepack/issues/612 +RUN npm install --global corepack@latest RUN corepack enable && corepack prepare --activate # Skip prisma code generation during install. ENV PRISMA_SKIP_POSTINSTALL_GENERATE=true @@ -29,7 +33,7 @@ RUN \ # Build the server. pnpm --filter server build && \ # Create an isolated deployment for the server. - pnpm --filter server deploy --prod deployment && \ + pnpm --filter server deploy --prod deployment --legacy && \ # Move the runtime build artifacts into a separate directory. mkdir -p deployment/out && mv deployment/dist deployment/prisma deployment/node_modules deployment/package.json deployment/out && \ # Generate the prisma client diff --git a/package.json b/package.json index 9faad8f2..0b4a90bc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "type": "module", - "packageManager": "pnpm@9.15.4", + "packageManager": "pnpm@10.4.1", "scripts": { "clean": "node scripts/clean.mjs", "build": "tsc -b tsconfig.build.json && pnpm --recursive --parallel --filter \"./packages/*\" run build",