Skip to content

Commit f7c2c88

Browse files
committed
(Chore): Fix publishing
We have to manually update version.txt since dart/flutter throws an error when we modify it without committing it. Signed-off-by: Victor Otieno <[email protected]>
1 parent 278d34a commit f7c2c88

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ jobs:
2626
- name: Setup Flutter SDK - needed for publishing Flutter packages.
2727
uses: flutter-actions/setup-flutter@6d11b83d56c388d0b6fe865194248a01a48548b5 #v4.1
2828

29-
- name: Update version string
30-
run: yq '.version' pubspec.yaml > lib/assets/version.txt
29+
# Previously dart would publish just fine after updating versin.txt in the below step.
30+
# Now it throws the error: "Package validation found the following potential issue: * 1 checked-in file is modified in git."
31+
#
32+
# - name: Update version string
33+
# run: yq '.version' pubspec.yaml > lib/assets/version.txt
3134

3235
- name: Install dependencies
3336
run: dart pub get

lib/assets/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"0.13.0"
1+
"0.16.1"

0 commit comments

Comments
 (0)