From 387376b15c91eb971593d1d817ed13c0d26560d3 Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Wed, 24 Dec 2025 16:38:47 -0800 Subject: [PATCH] Move pubspec version patch step after dry-run Reordered the 'Patch pubspec version for release' step in the CI workflow to occur after the 'dart pub publish --dry-run' step. This ensures version patching only happens immediately before publishing on tagged releases. --- .github/workflows/ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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: