From 86f7b052710adcf96f55a87dc0cde11dff6d0587 Mon Sep 17 00:00:00 2001 From: Albert Hernandez Date: Sun, 24 Nov 2024 14:48:36 +0100 Subject: [PATCH] chore: specify packageManager --- .env.example | 1 + .env.test | 1 + .github/actions/setup-node/action.yml | 2 -- Dockerfile | 4 ++-- README.md | 2 +- package.json | 1 + 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 2fc80e3..267aebf 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,2 @@ PORT=3000 +ENABLE_EXPERIMENTAL_COREPACK=1 diff --git a/.env.test b/.env.test index 4a2c052..c7fda52 100644 --- a/.env.test +++ b/.env.test @@ -1,2 +1,3 @@ NODE_ENV=test PORT=0 +ENABLE_EXPERIMENTAL_COREPACK=1 diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index 9a6cb2b..096d453 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -19,8 +19,6 @@ runs: run: echo "//registry.npmjs.org/:_authToken=${{ inputs.npm_token }}" > ~/.npmrc - name: Install pnpm 📦 uses: pnpm/action-setup@v4 - with: - version: 9 - name: Cache Dependencies ⌛️ uses: actions/cache@v4 id: cache-node-modules diff --git a/Dockerfile b/Dockerfile index e318d22..9701cfd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ FROM base AS dev ENV NODE_ENV=development ENV CI=true -RUN npm install -g pnpm@9 +RUN npm install -g pnpm@9.14.2 COPY package.json pnpm-lock.yaml ./ @@ -29,7 +29,7 @@ FROM base AS build ENV CI=true -RUN apk update && apk add --no-cache dumb-init=1.2.5-r3 && npm install -g pnpm@9 +RUN apk update && apk add --no-cache dumb-init=1.2.5-r3 && npm install -g pnpm@9.14.2 COPY package.json pnpm-lock.yaml ./ RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ".npmrc" && \ diff --git a/README.md b/README.md index 391d7ca..b042bf3 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ cp .env.example .env Now, we will need to install `pnpm` globally, you can do it running: ```bash -npm install -g pnpm@9 +npm install -g pnpm@9.14.2 ``` The project is fully dockerized 🐳, if we want to start the app in **development mode**, we just need to run: diff --git a/package.json b/package.json index c4a4712..800ae65 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "node": ">=22.x", "pnpm": ">=9.x" }, + "packageManager": "pnpm@9.14.2", "main": "dist/main.js", "scripts": { "build": "node --run validate-typescript && node --run build:clean && node --run generate-dist",