Skip to content

Commit aae481c

Browse files
committed
fix: update GitHub Actions workflows for Node 20+ compatibility
- Fix version-check.yml to use tsx instead of node for TypeScript files - Remove Node 18 from CI matrix (project requires Node 20+) - Add yarn install step before running version check
1 parent b06df1d commit aae481c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
strategy:
6262
matrix:
6363
os: [ubuntu-latest, macos-latest, windows-latest]
64-
node: [18, 20, 22]
64+
node: [20, 22]
6565

6666
steps:
6767
- uses: actions/checkout@v4

.github/workflows/version-check.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ jobs:
2020
with:
2121
node-version: '20'
2222

23+
- name: Install dependencies
24+
run: yarn install --frozen-lockfile
25+
2326
- name: Check version consistency
2427
run: |
25-
chmod +x scripts/version/check-version-consistency.js
26-
node scripts/version/check-version-consistency.js
28+
npx tsx scripts/version/check-version-consistency.ts
2729
2830
- name: Report status
2931
if: failure()

0 commit comments

Comments
 (0)