Skip to content

Commit a3068ab

Browse files
committed
chore: updated ci and bumped versions
1 parent 6e9877e commit a3068ab

File tree

2 files changed

+31
-16
lines changed

2 files changed

+31
-16
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,38 @@ name: Stable release 🕊️📦✅
33
on:
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

1010
jobs:
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

openapi-generator/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ dependencies:
1010
build: '>=1.0.0 <=3.0.0'
1111
source_gen: '>=1.0.0 <=2.0.0'
1212
path: '>=1.0.0 <=2.0.0'
13-
openapi_generator_annotations: ^6.0.0
13+
openapi_generator_annotations: ^6.1.0
1414
analyzer: '>=2.0.0 <7.0.0'
15-
openapi_generator_cli: ^6.0.0
15+
openapi_generator_cli: ^6.1.0
1616
crypto: '>=3.0.6 <=4.0.0'
1717
meta: '>=1.15.0 <=2.0.0'
1818
yaml: ^3.1.2

0 commit comments

Comments
 (0)