Update npm workflow to use npm pack dry-run and ignore Dart build dir
- Change npm dry-run step to use `npm pack --dry-run` for package validation - Add `build/` to `.pubignore` in Dart SDK to exclude build artifacts
Seto Elkahfi committed
May 14, 2026 at 12:50 UTC
1452d0fdcb704851754eaab5d5c860eb1a95d1d6
2 files changed
+3
-2
.github/workflows/release-sdk-npm.yml
+2
-2
@@ -68,9 +68,9 @@ jobs:
68
working-directory: sdk/react-native
69
run: npm run build
70
71
- - name: Dry-run publish
71
+ - name: Dry-run package
72
working-directory: sdk/react-native
73
- run: npm publish --dry-run --access public
73
+ run: npm pack --dry-run
74
75
# ── Publish to npm (tag push only) ────────────────────────────────────────
76
publish:
sdk/dart/.pubignore
+1
@@ -21,6 +21,7 @@ rust/target/
21
.dart_tool/
22
.packages
23
pubspec.lock
24
+build/
25
26
# Flutter-generated plugin registration files — regenerated on every `flutter pub get`
27
example/**/GeneratedPluginRegistrant.java