1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Distributed JS client quality
# Reusable workflow for the publishable package under js/.
# Local parity: cd js && npm ci && npm run quality
on:
workflow_call:
permissions:
contents: read
jobs:
quality:
name: Distributed JS client quality (Node ${{ matrix.node-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
defaults:
run:
working-directory: js
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: js/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run package quality checks on the minimum supported Node
if: matrix.node-version == '20'
run: npm run quality
- name: Run package compatibility checks on current Node
if: matrix.node-version == '24'
run: npm run check && npm run pack:smoke && npm run publint