Skip to content

Commit f800026

Browse files
ci: infra fixes
1 parent e532b64 commit f800026

3 files changed

Lines changed: 23 additions & 9 deletions

File tree

.github/workflows/CD.yaml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,24 @@ on:
1212
# If your repository contains multiple packages consider a pattern like:
1313
# - 'my_package_name-v[0-9]+.[0-9]+.[0-9]+'
1414

15-
# Publish using the reusable workflow from dart-lang.
1615
jobs:
1716
publish:
17+
name: Publish to pub.dev
18+
runs-on: ubuntu-latest
1819
permissions:
1920
id-token: write # Required for authentication using OIDC
20-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
21-
# with:
22-
# working-directory: path/to/package/within/repository
21+
steps:
22+
- uses: actions/checkout@v6
23+
24+
- uses: dart-lang/setup-dart@v1
25+
with:
26+
sdk: "3.11.5"
27+
28+
- name: Install dependencies
29+
run: dart pub get
30+
31+
- name: Publish - dry run
32+
run: dart pub publish --dry-run
33+
34+
- name: Publish to pub.dev
35+
run: dart pub publish -f

.github/workflows/CI.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- uses: dart-lang/setup-dart@v1
3333
with:
34-
sdk: "3.11.0"
34+
sdk: "3.11.5"
3535

3636
- name: 📦 Install Dependencies
3737
run: |

.github/workflows/release-please.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,20 @@ jobs:
2828
- uses: actions/checkout@v6
2929
if: ${{ steps.release.outputs.prs_created }}
3030
with:
31-
ref: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
31+
ref: release-please--branches--main--components--solvro_config
32+
token: ${{ steps.generate-token.outputs.token }}
3233

3334
- uses: dart-lang/setup-dart@v1
3435
if: ${{ steps.release.outputs.prs_created }}
3536
with:
36-
sdk: "3.11.0"
37+
sdk: "3.11.5"
3738

3839
- name: 📦 Install Dependencies
3940
if: ${{ steps.release.outputs.prs_created }}
4041
run: |
4142
dart pub get
4243
43-
- name: Run Build and Tests
44+
- name: Run build_runner build
4445
if: ${{ steps.release.outputs.prs_created }}
4546
run: |
4647
dart run build_runner build --delete-conflicting-outputs
@@ -54,4 +55,4 @@ jobs:
5455
commit_prefix: "chore: "
5556
commit_message: "run build_runner build"
5657
force: false
57-
target_branch: ${{ fromJSON(steps.release.outputs.pr).headBranchName }}
58+
target_branch: release-please--branches--main--components--solvro_config

0 commit comments

Comments
 (0)