From 2fafcea9ce74da4c39c1dfbd4381fc7f7f6fd834 Mon Sep 17 00:00:00 2001 From: Christopher Blanchard Date: Thu, 26 Mar 2026 10:26:33 +0000 Subject: [PATCH 1/4] ci: migrate CI workflow to pnpm and node 24 --- .github/workflows/ci.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea58877..b869329 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,25 +9,23 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Use Node.js 20 - uses: actions/setup-node@v3 - with: - node-version: 20.x + - name: Setup pnpm + uses: pnpm/action-setup@v4 - - name: Cache node modules - uses: actions/cache@v3 + - name: Use Node.js 20 + uses: actions/setup-node@v4 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + node-version: 24.x + cache: pnpm - name: Install - run: npm install + run: pnpm install --frozen-lockfile - name: Lint spec - run: npm run test + run: pnpm test - name: Build - run: npm run build + run: pnpm build - name: Smoke test run: node smoke.js From a72096f5d166b2f3e3b5b6e73568ad6c4a134398 Mon Sep 17 00:00:00 2001 From: Christopher Blanchard Date: Thu, 26 Mar 2026 10:26:59 +0000 Subject: [PATCH 2/4] fix: use pnpm in mock script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a18bf66..a9e0457 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "prepublish": "tsc", "semantic-release": "semantic-release", "start": "redocly preview --project-dir dist", - "mock": "npm run build && prism mock ./dist/openapi.yaml", + "mock": "pnpm build && prism mock ./dist/openapi.yaml", "build": "tsc", "test": "redocly lint dist/openapi.yaml && redocly lint dist/openapi.json" }, From f2f49a4fd7a0652c8404a7196161b60584be0e0b Mon Sep 17 00:00:00 2001 From: Christopher Blanchard Date: Thu, 26 Mar 2026 10:27:03 +0000 Subject: [PATCH 3/4] chore: bump pnpm to 10.33.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a9e0457..3dbba34 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@ideal-postcodes/openapi", "description": "Ideal Postcodes OpenAPI v3 specifications", "version": "4.16.0", - "packageManager": "pnpm@10.28.0", + "packageManager": "pnpm@10.33.0", "devDependencies": { "@cablanchard/tsconfig": "~2.0.0", "@redocly/cli": "~2.0.7", From 29386c61969ea49f2366ef42615abd2014afb6f2 Mon Sep 17 00:00:00 2001 From: Christopher Blanchard Date: Thu, 26 Mar 2026 10:27:03 +0000 Subject: [PATCH 4/4] ci(release): use node 24 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 77c36e9..6ac042a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 22 + node-version: 24 cache: pnpm registry-url: https://registry.npmjs.org