diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65ee32fc4..319c11542 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,14 +114,6 @@ jobs: working-directory: packages/flet run: flutter test - - name: Patch pubspec version for release - if: ${{ github.ref_type == 'tag' }} - shell: bash - working-directory: packages/flet - run: | - source "$SCRIPTS/common.sh" - patch_pubspec_version ./pubspec.yaml "$PKG_VER" - - name: Install dependencies shell: bash working-directory: packages/flet @@ -132,6 +124,14 @@ jobs: working-directory: packages/flet run: dart pub publish --dry-run + - name: Patch pubspec version for release + if: ${{ github.ref_type == 'tag' }} + shell: bash + working-directory: packages/flet + run: | + source "$SCRIPTS/common.sh" + patch_pubspec_version ./pubspec.yaml "$PKG_VER" + - name: Publish to pub.dev (Release) if: ${{ github.ref_type == 'tag' }} env: