Skip to content

Commit f439662

Browse files
authored
Merge pull request #300 from ideal-postcodes/updates
chore: migrate to pnpm and upgrade to node 24
2 parents 12dd8b7 + 29386c6 commit f439662

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,23 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Use Node.js 20
13-
uses: actions/setup-node@v3
14-
with:
15-
node-version: 20.x
12+
- name: Setup pnpm
13+
uses: pnpm/action-setup@v4
1614

17-
- name: Cache node modules
18-
uses: actions/cache@v3
15+
- name: Use Node.js 20
16+
uses: actions/setup-node@v4
1917
with:
20-
path: ~/.npm
21-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
18+
node-version: 24.x
19+
cache: pnpm
2220

2321
- name: Install
24-
run: npm install
22+
run: pnpm install --frozen-lockfile
2523

2624
- name: Lint spec
27-
run: npm run test
25+
run: pnpm test
2826

2927
- name: Build
30-
run: npm run build
28+
run: pnpm build
3129

3230
- name: Smoke test
3331
run: node smoke.js

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Use Node.js
2828
uses: actions/setup-node@v4
2929
with:
30-
node-version: 22
30+
node-version: 24
3131
cache: pnpm
3232
registry-url: https://registry.npmjs.org
3333

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@ideal-postcodes/openapi",
33
"description": "Ideal Postcodes OpenAPI v3 specifications",
44
"version": "4.16.0",
5-
"packageManager": "pnpm@10.28.0",
5+
"packageManager": "pnpm@10.33.0",
66
"devDependencies": {
77
"@cablanchard/tsconfig": "~2.0.0",
88
"@redocly/cli": "~2.0.7",
@@ -18,7 +18,7 @@
1818
"prepublish": "tsc",
1919
"semantic-release": "semantic-release",
2020
"start": "redocly preview --project-dir dist",
21-
"mock": "npm run build && prism mock ./dist/openapi.yaml",
21+
"mock": "pnpm build && prism mock ./dist/openapi.yaml",
2222
"build": "tsc",
2323
"test": "redocly lint dist/openapi.yaml && redocly lint dist/openapi.json"
2424
},

0 commit comments

Comments
 (0)