diff --git a/.github/workflows/publish-flutter.yml b/.github/workflows/publish-flutter.yml index 9d5fb85a5..14d6f5b3c 100644 --- a/.github/workflows/publish-flutter.yml +++ b/.github/workflows/publish-flutter.yml @@ -65,8 +65,8 @@ jobs: - name: Set package version working-directory: flutter run: | - flutter pub global activate pubspec_version - pubver set ${{ inputs.package-version }} + sed -i.bak -e 's/version:.*/version: ${{ inputs.package-version }}/' pubspec.yaml + rm pubspec.yaml.bak - name: Archive flutter release uses: actions/upload-artifact@v3