Skip to content

Commit 60eae9d

Browse files
committed
improve workflows
1 parent 1ac4eaf commit 60eae9d

4 files changed

Lines changed: 34 additions & 3 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ jobs:
4141
- name: Build production bundles
4242
run: npm run dist:prod
4343

44+
- name: Verify TypeScript declarations
45+
run: |
46+
for f in dist/semiotic.d.ts dist/semiotic-xy.d.ts dist/semiotic-ordinal.d.ts dist/semiotic-network.d.ts dist/semiotic-geo.d.ts dist/semiotic-realtime.d.ts; do
47+
if [ ! -f "$f" ]; then
48+
echo "MISSING: $f"
49+
exit 1
50+
fi
51+
done
52+
echo "All declaration files present"
53+
4454
- name: Check bundle sizes
4555
run: npx size-limit
4656

@@ -71,7 +81,7 @@ jobs:
7181
run: npm run dist
7282

7383
- name: Run E2E tests
74-
run: npx playwright test --update-snapshots
84+
run: npx playwright test
7585

7686
- name: Upload snapshot baselines
7787
if: always()

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ jobs:
3737
- name: Run type check
3838
run: npm run typescript
3939

40+
- name: Verify TypeScript declarations
41+
run: |
42+
for f in dist/semiotic.d.ts dist/semiotic-xy.d.ts dist/semiotic-ordinal.d.ts dist/semiotic-network.d.ts dist/semiotic-geo.d.ts dist/semiotic-realtime.d.ts; do
43+
if [ ! -f "$f" ]; then
44+
echo "MISSING: $f — aborting release"
45+
exit 1
46+
fi
47+
done
48+
echo "All declaration files present"
49+
4050
- name: Determine npm dist-tag
4151
id: dist-tag
4252
run: |
@@ -47,6 +57,11 @@ jobs:
4757
echo "tag=latest" >> "$GITHUB_OUTPUT"
4858
fi
4959
60+
- name: Dry-run publish (validate package)
61+
run: npm publish --dry-run --tag ${{ steps.dist-tag.outputs.tag }}
62+
env:
63+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
64+
5065
- name: Publish to npm
5166
run: npm publish --provenance --access public --tag ${{ steps.dist-tag.outputs.tag }}
5267
env:

docs/src/examples/recipes/NetworkExplorer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function NetworkExplorer({
147147
const targetMatch = !searchTerm || tgt.toLowerCase().includes(searchLower)
148148
return {
149149
stroke: "var(--text-secondary)",
150-
strokeWidth: raw.value || 1,
150+
strokeWidth: raw.weight || 1,
151151
opacity: sourceMatch || targetMatch ? 0.4 : 0.05,
152152
}
153153
}}

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,13 @@
161161
"streaming",
162162
"network-graph",
163163
"ai",
164-
"llm"
164+
"llm",
165+
"claude",
166+
"copilot",
167+
"geographic",
168+
"choropleth",
169+
"sankey",
170+
"force-directed"
165171
],
166172
"license": "Apache-2.0",
167173
"size-limit": [

0 commit comments

Comments
 (0)