Skip to content

Commit 64fa9b5

Browse files
committed
Merge branch 'release/1.0.0' into main
2 parents ac69e77 + dd96420 commit 64fa9b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+10900
-1
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- develop
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Dart
19+
uses: dart-lang/setup-dart@v1
20+
21+
- name: Install workspace deps
22+
run: dart pub get
23+
24+
- name: Activate Melos
25+
run: |
26+
dart pub global activate melos 7.3.0
27+
echo "$HOME/.pub-cache/bin" >> "$GITHUB_PATH"
28+
29+
- name: Bootstrap
30+
run: melos bootstrap
31+
32+
- name: Analyze
33+
run: melos run analyze --no-select
34+
35+
- name: Test
36+
run: melos run test --no-select

.github/workflows/publish.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "v*.*.*"
8+
9+
concurrency:
10+
group: publish-${{ github.ref }}
11+
cancel-in-progress: false
12+
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Dart
22+
uses: dart-lang/setup-dart@v1
23+
24+
- name: Install workspace deps
25+
run: dart pub get
26+
27+
- name: Activate Melos
28+
run: |
29+
dart pub global activate melos 7.3.0
30+
echo "$HOME/.pub-cache/bin" >> "$GITHUB_PATH"
31+
32+
- name: Bootstrap
33+
run: melos bootstrap
34+
35+
- name: Test
36+
run: melos run test --no-select
37+
38+
- name: Configure pub.dev credentials
39+
env:
40+
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
41+
run: |
42+
test -n "$PUB_CREDENTIALS"
43+
mkdir -p "$HOME/.config/dart"
44+
printf '%s' "$PUB_CREDENTIALS" > "$HOME/.config/dart/pub-credentials.json"
45+
46+
- name: Publish packages
47+
run: melos publish --no-dry-run --yes

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ doc/api/
2727

2828
.flutter-plugins
2929
.flutter-plugins-dependencies
30+
31+
.idea/
32+
*.iml
33+
*.ipr
34+
*.iws

0 commit comments

Comments
 (0)