diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7adf84d..ce807c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: 20 + node-version: 22 cache: npm - name: Install dependencies @@ -57,7 +57,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: 20 + node-version: 22 cache: npm - name: Install dependencies @@ -81,7 +81,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: 20 + node-version: 22 cache: npm - name: Install dependencies diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b6f27f1 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2bd5a0a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22 diff --git a/README.md b/README.md index d5c25ed..63d4031 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ Early development. Things move fast and not everything listed below is finished. ## Getting started -Prerequisites: Node.js 20 or later, and Docker (for the local database) or your -own PostgreSQL instance. +Prerequisites: Node.js 22 (pinned via `.nvmrc` and `engines`; run `nvm use`), +and Docker (for the local database) or your own PostgreSQL instance. ```bash # 1. Install dependencies diff --git a/package.json b/package.json index 88daaaa..ef1713d 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ "license": "SEE LICENSE IN LICENSE", "author": "Melvin PETIT (WhiteMuush)", "type": "module", + "engines": { + "node": "22.x" + }, "scripts": { "predev": "prisma migrate status || echo '\\n[!] Pending migrations or DB unreachable. If the app errors on a missing table, run: npm run db:migrate\\n'", "dev": "next dev",