Skip to content

Commit 20fea20

Browse files
committed
chore(global): enforce node and pnpm versions
1 parent 6519402 commit 20fea20

File tree

12 files changed

+295
-240
lines changed

12 files changed

+295
-240
lines changed

.github/workflows/linea-ens-contracts-tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727

28-
- name: Use Node.js 18
28+
- name: Use Node.js from .nvmrc
2929
uses: actions/setup-node@v4
3030
with:
31-
node-version: 18
31+
node-version-file: '.nvmrc'
32+
cache: 'yarn'
33+
cache-dependency-path: 'packages/linea-ens-contracts/yarn.lock'
3234

33-
- run: yarn install --immutable --immutable-cache --check-cache
35+
- name: Install dependencies
36+
run: yarn install --immutable --immutable-cache --check-cache
3437

3538
- name: Run test
3639
run: yarn test

.github/workflows/linea-ens-resolver-tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,19 @@ jobs:
2828
pnpm-workspace.yaml
2929
pnpm-lock.yaml
3030
package.json
31+
.nvmrc
3132
sparse-checkout-cone-mode: false
3233

3334
- name: Setup pnpm
34-
uses: pnpm/action-setup@v2.0.1
35+
uses: pnpm/action-setup@v4
3536
with:
36-
version: 10.10.0
37+
version: 10.26.0
38+
39+
- name: Use Node.js from .nvmrc
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version-file: '.nvmrc'
43+
cache: 'pnpm'
3744

3845
- name: Install Bun
3946
run: |

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.21.1

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ contract TestL1 is EVMFetchTarget {
9292

9393
## Requirements
9494

95-
- [Node.js](https://nodejs.org/en/download/package-manager) v18.x.
96-
- [pnpm](https://pnpm.io/installation) v9.x
97-
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/install)
95+
- [Node.js](https://nodejs.org/en/download/package-manager) v22.21.1+
96+
- [pnpm](https://pnpm.io/installation) v10.26.0+
97+
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/install) (for linea-ens-contracts only)
9898
- [Docker](https://docs.docker.com/engine/install/)
9999
- [docker-compose](https://docs.docker.com/compose/install/)
100100

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,10 @@
22
"name": "linea-ens",
33
"version": "1.0.0",
44
"private": true,
5-
"description": "Linea ENS monorepo"
5+
"description": "Linea ENS monorepo",
6+
"packageManager": "[email protected]",
7+
"engines": {
8+
"node": ">=22.21.1",
9+
"pnpm": ">=10.26.0"
10+
}
611
}

packages/linea-ens-app/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:22-alpine AS base
1+
FROM node:22.21.1-alpine AS base
22

33
ENV PNPM_HOME="/pnpm"
44
ENV PATH="$PNPM_HOME:$PATH"
@@ -37,7 +37,7 @@ COPY packages/linea-ens-contracts/ ./packages/linea-ens-contracts/
3737
WORKDIR /app/packages/linea-ens-app
3838
RUN pnpm build
3939

40-
FROM node:22-alpine AS runner
40+
FROM node:22.21.1-alpine AS runner
4141
WORKDIR /app
4242

4343
ENV NODE_ENV=production

packages/linea-ens-app/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,15 @@ the [requirements](../../README.md#requirements) if you encounter an error. To v
208208

209209
```bash
210210
node --version
211-
v18.20.4
211+
v22.21.1
212212
```
213213

214214
Node Version Manager (nvm) can be used to manage multiple versions of Node.js if you find you are not in the correct
215-
version of Node.
215+
version of Node. The repository includes a `.nvmrc` file that specifies the required version.
216216

217217
```bash
218218
pnpm --version
219-
9.4.0
219+
10.26.0
220220
```
221221

222222
```bash

0 commit comments

Comments
 (0)