diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b16a086..5d18ce0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,12 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 22.19.0 + node-version: 22 cache: pnpm + - name: Upgrade npm + run: npm install -g npm@latest + - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc664aa..514810e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,10 +29,19 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: 22.19.0 + node-version: 22 cache: pnpm registry-url: https://registry.npmjs.org + - name: Upgrade npm + run: npm install -g npm@latest + + - name: Show tool versions + run: | + node -v + npm -v + pnpm -v + - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.node-version b/.node-version index e222811..2bd5a0a 100644 --- a/.node-version +++ b/.node-version @@ -1 +1 @@ -22.19.0 +22 diff --git a/.nvmrc b/.nvmrc index e222811..2bd5a0a 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -22.19.0 +22 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6025dcd..cb40200 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -6,8 +6,8 @@ Thanks for contributing to `@eko24ive/pi-ask`. Requirements: -- Node.js `22.19.0` -- pnpm `10.33.0` +- Node.js `22+` +- pnpm `10+` Install dependencies: diff --git a/README.md b/README.md index c474d15..0df3799 100644 --- a/README.md +++ b/README.md @@ -156,10 +156,10 @@ Behavior: ### Requirements -- Node.js `22.19.0` -- pnpm `10.33.0` +- Node.js `22+` +- pnpm `10+` -The repo also includes `.nvmrc` and `.node-version` pinned to the same Node.js version. +The repo includes `.nvmrc` and `.node-version` set to Node.js `22`. ### Run locally in pi diff --git a/package.json b/package.json index 009ddb7..bffa3ec 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "check": "ultracite check", "check:ci": "biome ci .", "fix": "ultracite fix", - "prepare": "lefthook install", + "prepare": "node -e \"if (!process.env.CI) { require('node:child_process').execSync('lefthook install', { stdio: 'inherit' }); } else { console.log('Skipping lefthook install in CI'); }\"", "commit": "cz", "commitlint": "commitlint", "release": "semantic-release" @@ -103,10 +103,9 @@ "ultracite": "7.6.0" }, "engines": { - "node": "22.19.x", - "pnpm": "10.33.0" + "node": ">=22", + "pnpm": ">=10" }, - "packageManager": "pnpm@10.33.0", "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog"