Skip to content

Commit 589a4d1

Browse files
committed
ci: validate package types and artifacts
1 parent 8c4c53e commit 589a4d1

7 files changed

Lines changed: 1136 additions & 1 deletion

File tree

.github/workflows/release-noble.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ jobs:
1717
maintenance_branch: false
1818
manifest_directory: ./examples/noble-suite
1919
package_directory: ./examples/noble-suite
20+
artifact_check_command: node tools/test-dist.js "$PACKAGE_TARBALL" examples/noble-suite
2021
prepare_command: npm clean-install && node --run build
2122
tagged_release: false

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ jobs:
1515
id-token: write
1616
uses: panva/.github/.github/workflows/npm-release.yml@main
1717
with:
18+
artifact_check_command: node tools/test-dist.js "$PACKAGE_TARBALL" .
1819
cleanup_paths: '["index.js","index.d.ts","index.d.ts.map"]'

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
- run: npm clean-install
3131
- run: node --run build
3232
- run: node --run build:other
33+
- name: Type-level regression tests
34+
run: node --run typecheck:types
35+
- name: Packaging metadata and type resolution
36+
run: node --run check:packaging
37+
- name: Packed artifact contents and runtime
38+
run: node --run test:dist
3339
- run: node --run format -- --write false --check --log-level warn
3440
- run: git diff --exit-code
3541

0 commit comments

Comments
 (0)