Skip to content

Commit feb8cfe

Browse files
committed
Bump NodeJS versions to address Node2Shell: Node.js Brotli RCE (CVE-2026-111497)
1 parent a4ae5b0 commit feb8cfe

1 file changed

Lines changed: 63 additions & 61 deletions

File tree

Lines changed: 63 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,63 @@
1-
name: JavaScript Client - CI
2-
3-
on:
4-
push:
5-
branches: [ "master" ]
6-
paths-ignore:
7-
- '**.md' # Skip CI when only docs/readmes change
8-
pull_request:
9-
branches: [ "master" ]
10-
11-
# Cancel in-progress CI runs if new commits are pushed to the same PR/branch
12-
concurrency:
13-
group: ${{ github.workflow }}-${{ github.ref }}
14-
cancel-in-progress: true
15-
16-
permissions:
17-
contents: read
18-
19-
jobs:
20-
build:
21-
runs-on: ubuntu-latest
22-
23-
strategy:
24-
fail-fast: false # Prevents all versions from cancelling if just one fails
25-
matrix:
26-
node-version: [22.23.4, 24.22.1]
27-
28-
steps:
29-
- name: Checkout repository
30-
uses: actions/checkout@v5
31-
32-
- name: Setup Node.js ${{ matrix.node-version }}
33-
uses: actions/setup-node@v5
34-
with:
35-
node-version: ${{ matrix.node-version }}
36-
cache: 'npm' # ⚡️ Speeds up `npm ci` by caching ~/.npm across runs
37-
38-
# ── Install ─────────────────────────────────────────────────────────────
39-
- name: Install dependencies
40-
run: npm ci
41-
42-
# ── Lint & Verify ───────────────────────────────────────────────────────
43-
# We only need to lint and check outdated dependencies on ONE Node version
44-
# to save duplicate work and runner minutes. Node 24 is the current LTS.
45-
- name: Lint typecheck
46-
if: matrix.node-version == '24.x'
47-
run: npm run lint:typecheck
48-
49-
- name: Check outdated dependencies
50-
if: matrix.node-version == '24.x'
51-
run: npm outdated || true
52-
53-
# ── Test & Build (Runs on all Node versions) ────────────────────────────
54-
- name: Run tests
55-
run: npm run test
56-
57-
- name: Build distribution
58-
run: npm run build --if-present
59-
60-
- name: Verify build artifacts
61-
run: ls -la dist/
1+
name: JavaScript Client - CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
paths-ignore:
7+
- '**.md' # Skip CI when only docs/readmes change
8+
pull_request:
9+
branches: [ "master" ]
10+
11+
# Cancel in-progress CI runs if new commits are pushed to the same PR/branch
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
strategy:
24+
fail-fast: false # Prevents all versions from cancelling if just one fails
25+
matrix:
26+
node-version: [22.23.4, 24.22.1]
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v5
31+
with:
32+
persist-credentials: false # no token left in .git/config for npm install scripts and the build to read
33+
34+
- name: Setup Node.js ${{ matrix.node-version }}
35+
uses: actions/setup-node@v5
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
cache: 'npm' # ⚡️ Speeds up `npm ci` by caching ~/.npm across runs
39+
40+
# ── Install ─────────────────────────────────────────────────────────────
41+
- name: Install dependencies
42+
run: npm ci
43+
44+
# ── Lint & Verify ───────────────────────────────────────────────────────
45+
# We only need to lint and check outdated dependencies on ONE Node version
46+
# to save duplicate work and runner minutes. Node 24 is the current LTS.
47+
- name: Lint typecheck
48+
if: matrix.node-version == '24.x'
49+
run: npm run lint:typecheck
50+
51+
- name: Check outdated dependencies
52+
if: matrix.node-version == '24.x'
53+
run: npm outdated || true
54+
55+
# ── Test & Build (Runs on all Node versions) ────────────────────────────
56+
- name: Run tests
57+
run: npm run test
58+
59+
- name: Build distribution
60+
run: npm run build --if-present
61+
62+
- name: Verify build artifacts
63+
run: ls -la dist/

0 commit comments

Comments
 (0)