@@ -3,23 +3,38 @@ name: Stable release 🕊️📦✅
3
3
on :
4
4
release :
5
5
types :
6
- - released
7
- - prereleased
8
- workflow_dispatch :
6
+ - released # Trigger on stable releases
7
+ - prereleased # Trigger on pre-releases (optional)
8
+ workflow_dispatch : # Allow manual triggering
9
9
10
10
jobs :
11
11
test :
12
12
uses : gibahjoe/openapi-generator-dart/.github/workflows/code_quality.yml@master
13
- secrets : inherit
14
- publish :
15
- name : Publish Packages with Melos
16
- runs-on : ubuntu-latest
13
+ secrets : inherit # Reuse repository secrets
14
+
15
+ publish_annotations :
16
+ name : Publish Annotations Package
17
+ needs : [test]
18
+ permissions :
19
+ id-token : write # Required for authentication using OIDC
20
+ uses : dart-lang/setup-dart/.github/workflows/publish.yml@v1
21
+ with :
22
+ working-directory : openapi-generator-annotations
23
+
24
+ publish_cli :
25
+ name : Publish CLI Package
17
26
needs : [test]
18
- steps :
19
- - uses : actions/checkout@v4
20
- - uses : subosito/flutter-action@v2
21
- - uses : bluefireteam/melos-action@v3
22
- - uses : dart-lang/setup-dart@v1
27
+ permissions :
28
+ id-token : write # Required for authentication using OIDC
29
+ uses : dart-lang/setup-dart/.github/workflows/publish.yml@v1
30
+ with :
31
+ working-directory : openapi-generator-cli
23
32
24
- - name : Publish
25
- run : melos publish --no-dry-run --yes
33
+ publish_generator :
34
+ name : Publish Generator Package
35
+ needs : [publish_cli, publish_annotations]
36
+ permissions :
37
+ id-token : write # Required for authentication using OIDC
38
+ uses : dart-lang/setup-dart/.github/workflows/publish.yml@v1
39
+ with :
40
+ working-directory : openapi-generator
0 commit comments