Skip to content

Commit

Permalink
chore: specify packageManager
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertHernandez committed Nov 24, 2024
1 parent f9f109a commit 86f7b05
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PORT=3000
ENABLE_EXPERIMENTAL_COREPACK=1
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NODE_ENV=test
PORT=0
ENABLE_EXPERIMENTAL_COREPACK=1
2 changes: 0 additions & 2 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./

Expand All @@ -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" && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"node": ">=22.x",
"pnpm": ">=9.x"
},
"packageManager": "[email protected]",
"main": "dist/main.js",
"scripts": {
"build": "node --run validate-typescript && node --run build:clean && node --run generate-dist",
Expand Down

0 comments on commit 86f7b05

Please sign in to comment.