Skip to content

Commit 7c00453

Browse files
committed
final test of pub actions
1 parent a6fa678 commit 7c00453

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.github/workflows/publish_monorepo.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,11 @@ jobs:
121121
# uses: dart-lang/setup-pub@v1
122122
uses: flutter-actions/setup-pubdev-credentials@v1
123123

124-
# - name: 🚀 Publish to pub.dev
125-
# # The `dart-lang/setup-pub` action has already set up the authentication.
126-
# # `--force` is used to bypass the interactive confirmation prompt in CI.
127-
# run: flutter pub publish --force
128-
# working-directory: ${{ steps.validate_package.outputs.working_directory }} # Crucial for specific package
129-
#
130-
#
124+
- name: 🚀 Publish to pub.dev
125+
# The `dart-lang/setup-pub` action has already set up the authentication.
126+
# `--force` is used to bypass the interactive confirmation prompt in CI.
127+
run: flutter pub publish --force
128+
working-directory: ${{ steps.validate_package.outputs.working_directory }} # Crucial for specific package
131129

132130
- name: 🎉 Create GitHub Release
133131
id: create_release

packages/README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
4. Run `flutter pub publish`.
1010

1111
## Publish automated
12-
13-
1. Run `git tag packages/ui_kit/v1.0.0`
14-
2. Run `git push origin packages/ui_kit/v1.0.0`
15-
3. Monitor GitHub Actions:
16-
Go to your GitHub repository's "Actions" tab. You should see your "Publish Monorepo Package to pub.dev" workflow running. Monitor its progress. If there are any errors (e.g., version mismatch, pubspec.yaml not found), the workflow will fail, and you'll get detailed logs.
12+
1. Publish branch to `origin`.
13+
2. Run `git tag packages/ui_kit/v1.0.0`
14+
3. Run `git push origin packages/ui_kit/v1.0.0`
15+
4. Monitor GitHub Actions:
16+
Go to your GitHub repository's "Actions" tab. You should see your "Publish Monorepo Package to pub.dev" workflow running. Monitor its progress. If there are any errors (e.g., version mismatch, pubspec.yaml not found), the workflow will fail, and you'll get detailed logs.
17+
5. Merge `branch` to `master`.

packages/neat_ui/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.4
2+
3+
- Final test of Github Actions.
4+
15
## 0.0.3
26

37
- Fix Github Actions (build release), fix logo image.

packages/neat_ui/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: neat_ui
22
description: A Flutter package with UI helpers (widgets/utils).
3-
version: 0.0.3
3+
version: 0.0.4
44
homepage: https://github.com/neatcodingZP/flutter.basic_libs/packages/neat_ui
55
repository: https://github.com/neatcodingZP/flutter.basic_libs/packages/neat_ui
66
issue_tracker: https://github.com/neatcodingZP/flutter.basic_libs/issues

0 commit comments

Comments
 (0)