Skip to content

Commit 9c361d2

Browse files
committed
some changes and a new build process
1 parent b607118 commit 9c361d2

15 files changed

Lines changed: 2996 additions & 1569 deletions

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: check out repository
15+
uses: actions/checkout@v4
16+
17+
- name: set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
22+
- name: install dependencies # no "npm ci" - the lock file
23+
run: npm install --no-audit --no-fund # is deliberately not committed
24+
25+
- name: run test suite
26+
run: npm run test:run
27+
28+
- name: build library
29+
run: npm run build
30+
31+
- name: check tree-shakeability
32+
run: npm run agadoo

.github/workflows/publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Publish to npm
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
id-token: write # required for npm trusted publishing (OIDC)
14+
15+
steps:
16+
- name: check out repository
17+
uses: actions/checkout@v4
18+
19+
- name: set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
registry-url: https://registry.npmjs.org
24+
25+
- name: update npm # trusted publishing needs
26+
run: npm install -g npm@latest # npm 11.5.1 or newer
27+
28+
- name: install dependencies # no "npm ci" - the lock file
29+
run: npm install --no-audit --no-fund # is deliberately not committed
30+
31+
- name: run test suite
32+
run: npm run test:run
33+
34+
- name: build library
35+
run: npm run build
36+
37+
- name: publish package
38+
run: npm publish

README.md

Lines changed: 45 additions & 32 deletions
Large diffs are not rendered by default.

dist/javascript-interface-library.d.ts

Lines changed: 505 additions & 247 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)