Skip to content

Commit 8209772

Browse files
committed
ci: modernize toolchain matrices and Dependabot
Align CI language versions with current SDK dependencies, add Dependabot, and record related changelog notes.
1 parent b79fd75 commit 8209772

5 files changed

Lines changed: 93 additions & 76 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 10
8+
- package-ecosystem: "github-actions"
9+
directory: "/"
10+
schedule:
11+
interval: weekly

‎.github/workflows/ci.yml‎

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,74 @@
1-
name: CI
2-
3-
on:
4-
push:
5-
branches: [ main, develop ]
6-
pull_request:
7-
branches: [ main, develop ]
8-
9-
jobs:
10-
test:
11-
runs-on: ubuntu-latest
12-
13-
strategy:
14-
matrix:
15-
node-version: [18.x, 20.x]
16-
17-
steps:
18-
- uses: actions/checkout@v4
19-
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
cache: 'npm'
25-
26-
- name: Install dependencies
27-
run: |
28-
if [ -f package-lock.json ]; then
29-
npm ci
30-
else
31-
npm install
32-
fi
33-
34-
- name: Run linter
35-
run: npm run lint || true
36-
continue-on-error: true
37-
38-
- name: Build
39-
run: npm run build
40-
41-
- name: Run tests
42-
run: npm test || true
43-
continue-on-error: true
44-
45-
publish:
46-
needs: test
47-
runs-on: ubuntu-latest
48-
if: github.event_name == 'release' && github.event.action == 'published'
49-
50-
steps:
51-
- uses: actions/checkout@v4
52-
53-
- name: Use Node.js
54-
uses: actions/setup-node@v4
55-
with:
56-
node-version: '20.x'
57-
registry-url: 'https://registry.npmjs.org'
58-
59-
- name: Install dependencies
60-
run: |
61-
if [ -f package-lock.json ]; then
62-
npm ci
63-
else
64-
npm install
65-
fi
66-
67-
- name: Build
68-
run: npm run build
69-
70-
- name: Publish to npm
71-
run: npm publish --access public
72-
env:
73-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
74-
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [20.x, 22.x, 24.x]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: |
28+
if [ -f package-lock.json ]; then
29+
npm ci
30+
else
31+
npm install
32+
fi
33+
34+
- name: Run linter
35+
run: npm run lint || true
36+
continue-on-error: true
37+
38+
- name: Build
39+
run: npm run build
40+
41+
- name: Run tests
42+
run: npm test || true
43+
continue-on-error: true
44+
45+
publish:
46+
needs: test
47+
runs-on: ubuntu-latest
48+
if: github.event_name == 'release' && github.event.action == 'published'
49+
50+
steps:
51+
- uses: actions/checkout@v4
52+
53+
- name: Use Node.js
54+
uses: actions/setup-node@v4
55+
with:
56+
node-version: '24.x'
57+
registry-url: 'https://registry.npmjs.org'
58+
59+
- name: Install dependencies
60+
run: |
61+
if [ -f package-lock.json ]; then
62+
npm ci
63+
else
64+
npm install
65+
fi
66+
67+
- name: Build
68+
run: npm run build
69+
70+
- name: Publish to npm
71+
run: npm publish --access public
72+
env:
73+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
74+

‎CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [1.0.2] - 2026-10-10
4+
5+
- Relicensed public surface under Elastic License 2.0 (ELv2).
6+
- Raised `engines.node` from `>=14` to `>=20`; CI matrix now Node 20 / 22 / 24.
7+
- Added Dependabot for npm and GitHub Actions.
8+
39
All notable changes to this SDK are documented in this file.
410

511

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@licensechain/javascript-sdk",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Official LicenseChain JavaScript SDK for license management and validation",
55
"main": "dist/index.js",
66
"module": "dist/index.esm.js",
@@ -43,7 +43,7 @@
4343
},
4444
"homepage": "https://docs.licensechain.app/sdks/javascript",
4545
"engines": {
46-
"node": ">=14.0.0"
46+
"node": ">=20.0.0"
4747
},
4848
"dependencies": {
4949
"axios": "^1.6.0",
File renamed without changes.

0 commit comments

Comments
 (0)