Skip to content

Commit 4f1c058

Browse files
committed
(Github Action): Revert to automatic updates to version.txt
I realized that with the `--dry-run` option, warnings are treated as errors. However with `--force` only actual errors cause the command to fail. Signed-off-by: Victor Omondi <victor@slick.co.ke>
1 parent cf1b649 commit 4f1c058

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ 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
31+
2932
- name: Install dependencies
3033
run: dart pub get
3134

32-
- name: Publish (Dry run)
33-
run: dart pub publish --dry-run
34-
3535
# If the package has errors, it won't upload.
3636
- name: Publish
3737
run: dart pub publish --force

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.17.1
2+
3+
- Fix internal version.
4+
15
## 0.17.0
26

37
- **Breaking change:** Updated the minimum Flutter SDK requirement to 3.32.0

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: talkjs_flutter
22
description: Official TalkJS SDK for Flutter
3-
version: 0.17.0
3+
version: 0.17.1
44
homepage: https://talkjs.com
55

66
environment:

0 commit comments

Comments
 (0)