Skip to content

Commit

Permalink
chore: updated ci and bumped versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gibahjoe committed Dec 15, 2024
1 parent 6e9877e commit a3068ab
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 16 deletions.
43 changes: 29 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,38 @@ name: Stable release 🕊️📦✅
on:
release:
types:
- released
- prereleased
workflow_dispatch:
- released # Trigger on stable releases
- prereleased # Trigger on pre-releases (optional)
workflow_dispatch: # Allow manual triggering

jobs:
test:
uses: gibahjoe/openapi-generator-dart/.github/workflows/code_quality.yml@master
secrets: inherit
publish:
name: Publish Packages with Melos
runs-on: ubuntu-latest
secrets: inherit # Reuse repository secrets

publish_annotations:
name: Publish Annotations Package
needs: [test]
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: openapi-generator-annotations

publish_cli:
name: Publish CLI Package
needs: [test]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- uses: bluefireteam/melos-action@v3
- uses: dart-lang/setup-dart@v1
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: openapi-generator-cli

- name: Publish
run: melos publish --no-dry-run --yes
publish_generator:
name: Publish Generator Package
needs: [publish_cli, publish_annotations]
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
with:
working-directory: openapi-generator
4 changes: 2 additions & 2 deletions openapi-generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ dependencies:
build: '>=1.0.0 <=3.0.0'
source_gen: '>=1.0.0 <=2.0.0'
path: '>=1.0.0 <=2.0.0'
openapi_generator_annotations: ^6.0.0
openapi_generator_annotations: ^6.1.0
analyzer: '>=2.0.0 <7.0.0'
openapi_generator_cli: ^6.0.0
openapi_generator_cli: ^6.1.0
crypto: '>=3.0.6 <=4.0.0'
meta: '>=1.15.0 <=2.0.0'
yaml: ^3.1.2
Expand Down

0 comments on commit a3068ab

Please sign in to comment.