@@ -3,23 +3,38 @@ name: Stable release 🕊️📦✅
33on :
44 release :
55 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
99
1010jobs :
1111 test :
1212 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
1726 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
2332
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