diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4574263..f3966c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v6 with: - node-version: 20 + node-version-file: .nvmrc cache: pnpm - name: Install dependencies diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..209e3ef --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20 diff --git a/README.md b/README.md index d79d1b5..2533972 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,10 @@ const others = connectors.filter( ## Run it +Requires Node 20.19+, 22.13+ or 24+. With nvm, `nvm use` picks the version in `.nvmrc`. + ```bash +nvm use pnpm install cp .env.local.example .env.local # add your JAW API key from https://jaw.id pnpm dev diff --git a/package.json b/package.json index 6a60d47..028e914 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "version": "0.1.0", "private": true, "packageManager": "pnpm@10.28.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24.0.0" + }, "scripts": { "dev": "next dev", "build": "next build",