diff --git a/.github/workflows/publish-to-pubdev.yml b/.github/workflows/publish-to-pubdev.yml index ef9ab5f..55f11b3 100644 --- a/.github/workflows/publish-to-pubdev.yml +++ b/.github/workflows/publish-to-pubdev.yml @@ -13,11 +13,20 @@ jobs: id-token: write # Required for authentication using OIDC runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: dart-lang/setup-dart@v1 - - name: Install dependencies + - uses: actions/checkout@v4 + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.29.2' + channel: 'stable' + - name: Install dependencies ๐Ÿ“ฆ run: flutter pub get - # Here you can insert custom steps you need - # - run: dart tool/generate-code.dart + - name: Analyze ๐Ÿ” + run: flutter analyze + - name: Check Publish Warnings ๐Ÿ™๐Ÿฝ + run: dart pub publish --dry-run + - name: Clean example project ๐Ÿงน + run: cd example && flutter clean . + - uses: dart-lang/setup-dart@v1 - name: Publish run: flutter pub publish --force \ No newline at end of file