Skip to content

Commit f9f12c5

Browse files
committed
fix: add .pubignore and handle RC dry-run warnings gracefully
1 parent e7d6be8 commit f9f12c5

2 files changed

Lines changed: 48 additions & 1 deletion

File tree

.github/workflows/rc-release.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff 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: |

.pubignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+

0 commit comments

Comments
 (0)