Skip to content

Commit ee2278d

Browse files
committed
chore: Migrate to pnpm
Updat CI and Dockerfile
1 parent 324bd64 commit ee2278d

6 files changed

Lines changed: 5315 additions & 7908 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,18 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18-
19-
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
18+
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
2019
with:
21-
node-version: 20.17.0
22-
23-
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
20+
version: 10
21+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2422
with:
25-
path: node_modules
26-
key: npm-${{ hashFiles('package-lock.json') }}
27-
28-
- run: npm install
29-
30-
- run: npm run lint
23+
node-version-file: .nvmrc
24+
cache: pnpm
3125

32-
- run: npm run test
26+
- run: |
27+
pnpm install
28+
pnpm lint
29+
pnpm test
3330
3431
- id: docker_meta
3532
uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM node:24.14.1-alpine@sha256:01743339035a5c3c11a373cd7c83aeab6ed1457b55da6a69e014a95ac4e4700b
22

33
WORKDIR /app
4-
COPY package.json package-lock.json ./
5-
RUN npm install --production
4+
RUN corepack enable && echo yo
5+
COPY package.json pnpm-lock.yaml ./
6+
RUN pnpm install --production --frozen-lockfile
67
COPY . .
78

8-
CMD ["npm", "start"]
9+
CMD ["pnpm", "start"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ updates:
123123
#### node/lambda/cloud run/ something else
124124

125125
1. Clone this repo
126-
1. `npm install --production`
127-
1. `npm start` (with the with the [below environment variables table](#Setup-environment-variables) set)
126+
1. `pnpm install --production`
127+
1. `pnpm start` (with the with the [below environment variables table](#Setup-environment-variables) set)
128128

129129
### Setup environment variables
130130

0 commit comments

Comments
 (0)