File tree Expand file tree Collapse file tree 4 files changed +27
-40
lines changed Expand file tree Collapse file tree 4 files changed +27
-40
lines changed Original file line number Diff line number Diff line change 10
10
- ' README.md'
11
11
- ' CHANGELOG.md'
12
12
- ' LICENSE'
13
+ workspace :
14
+ - ' melos.yaml'
15
+ - ' pubspec.yaml'
Original file line number Diff line number Diff line change 10
10
jobs :
11
11
test :
12
12
uses : gibahjoe/openapi-generator-dart/.github/workflows/code_quality.yml@master
13
- publish-cli :
13
+ publish :
14
+ name : Publish Packages with Melos
14
15
runs-on : ubuntu-latest
15
16
needs : [test]
16
17
steps :
17
18
- name : Checkout
18
- uses : actions/checkout@v1
19
- - name : Publish
20
-
21
- with :
22
- credential : ${{ secrets.PUB_CREDENTIAL_JSON }}
23
- package_directory : ./openapi-generator-cli
24
- flutter_package : true
25
- skip_test : true
26
- dry_run : false
27
- publish-annotation :
28
- runs-on : ubuntu-latest
29
- needs : [test]
30
- steps :
31
- - name : Checkout
32
- uses : actions/checkout@v1
33
- - name : Publish
34
-
35
- with :
36
- credential : ${{ secrets.PUB_CREDENTIAL_JSON }}
37
- package_directory : ./openapi-generator-annotations
38
- flutter_package : true
39
- skip_test : true
40
- dry_run : false
41
- publish-generator :
42
- runs-on : ubuntu-latest
43
- needs : [publish-annotation, publish-cli]
44
- steps :
45
- - name : Checkout
46
- uses : actions/checkout@v1
47
- - name : Publish
48
-
49
- with :
50
- credential : ${{ secrets.PUB_CREDENTIAL_JSON }}
51
- package_directory : ./openapi-generator
52
- flutter_package : true
53
- skip_test : false
54
- dry_run : false
19
+ uses : actions/checkout@v3
20
+
21
+ - name : Setup Dart
22
+ uses : dart-lang/setup-dart@v1
23
+
24
+ - name : Install Melos
25
+ run : dart pub global activate melos
26
+
27
+ - name : Authenticate with Pub
28
+ run : echo "${{ secrets.PUB_CREDENTIAL_JSON }}" > ~/.pub-cache/credentials.json
29
+
30
+ - name : Bootstrap Melos
31
+ run : melos bootstrap
32
+
33
+ - name : Version and Publish
34
+ run : |
35
+ melos version --yes --no-changelog
36
+ melos publish --no-dry-run --yes
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ permissions:
10
10
11
11
jobs :
12
12
release-please :
13
- if : github.event.pull_request.merged == true && !startsWith(github.event.pull_request.title, 'chore(release):')
13
+ if : >
14
+ github.event_name == 'push' ||
15
+ (github.event.pull_request.merged == true && !startsWith(github.event.pull_request.title, 'chore(release):'))
14
16
runs-on : ubuntu-latest
15
17
steps :
16
18
- uses : google-github-actions/release-please-action@v3
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ description: OpenAPI API client
4
4
homepage : homepage
5
5
6
6
environment :
7
- sdk : ' >=2.15.0 <3 .0.0'
7
+ sdk : ' >=2.15.0 <4 .0.0'
8
8
9
9
dependencies :
10
10
dio : ' ^5.2.0'
You can’t perform that action at this time.
0 commit comments