File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -406,7 +406,25 @@ jobs:
406406 - name : 📦 Get dependencies
407407 run : flutter pub get
408408 - name : 📝 Validate package (dry-run)
409- run : flutter pub publish --dry-run
409+ run : |
410+ # Run dry-run and capture output
411+ # Exit code 65 = warnings only (acceptable for RC builds since CHANGELOG won't have -rcN suffix)
412+ # Exit code 0 = success
413+ # Other exit codes = real errors
414+ set +e
415+ flutter pub publish --dry-run
416+ EXIT_CODE=$?
417+ set -e
418+
419+ if [ $EXIT_CODE -eq 0 ]; then
420+ echo "✅ Package validation passed with no warnings"
421+ elif [ $EXIT_CODE -eq 65 ]; then
422+ echo "⚠️ Package validation passed with warnings (expected for RC builds)"
423+ echo "Note: CHANGELOG warning for RC version suffix is expected"
424+ else
425+ echo "❌ Package validation failed with exit code $EXIT_CODE"
426+ exit $EXIT_CODE
427+ fi
410428 - name : ℹ️ RC dry-run active — skipping publish
411429 if : ${{ needs.validate-release.outputs.dry_run == 'true' }}
412430 run : |
Original file line number Diff line number Diff line change 1+ # Files to exclude from pub.dev package
2+
3+ # Development/build files
4+ covBadgeGen.js
5+ coverage_badge.svg
6+ package.json
7+ package-lock.json
8+ node_modules/
9+ local.properties
10+ .cursor/
11+
12+ # Example app files that shouldn't be in package
13+ example/.env
14+ example/.metadata
15+ example/build/
16+ example/ios/Podfile.lock
17+ example/ios/Pods/
18+ example/ios/Flutter/ephemeral/
19+ example/android/local.properties
20+
21+ # CI/CD files
22+ .github/
23+ .travis.yml
24+
25+ # Internal documentation
26+ FlutterEngine_and_Android_lifecycle_interaction.txt
27+ doc/Deep-Link-Callback-Fix-Summary.md
28+ doc/DeepLink-NewIntent-Fix.md
29+
You can’t perform that action at this time.
0 commit comments