File tree Expand file tree Collapse file tree 3 files changed +18
-84
lines changed Expand file tree Collapse file tree 3 files changed +18
-84
lines changed Original file line number Diff line number Diff line change 1- name : check
1+ name : checks
22
33on :
44 pull_request :
5-
5+
66jobs :
7- build :
8- runs-on : ubuntu-latest
9-
10- steps :
11- - uses : actions/checkout@v4
12-
13- -
uses :
dart-lang/[email protected] 14-
15- - uses : bluefireteam/melos-action@v3
16- - run : melos format --output=none --set-exit-if-changed .
17- - run : melos analyze
18- - run : melos test
19-
20- 21- with :
22- lcov-file : ./coverage/lcov.info
7+ dart-pipeline :
8+ uses : affinidi/pipeline-dart/.github/workflows/check.yaml@main
9+ secrets : inherit
Original file line number Diff line number Diff line change 1- name : publish
2-
1+ name : " release "
2+
33on :
44 push :
5- tags :
6- - ' **v[0-9]+.[0-9]+.[0-9]+*'
7- workflow_dispatch :
5+ branches :
6+ - main
87
98jobs :
10- publish-packages :
11- name : Publish packages
12- environment : release
13- permissions :
14- contents : write
15- id-token : write # Required for authentication using OIDC
16- runs-on : [ ubuntu-latest ]
17- steps :
18- - uses : actions/checkout@v4
19- with :
20- fetch-depth : 0
21- -
uses :
dart-lang/[email protected] 22- - uses : bluefireteam/melos-action@v3
23- with :
24- publish : false
9+ dart-pipeline :
10+ uses : affinidi/pipeline-dart/.github/workflows/release.yaml@main
11+ secrets : inherit
Original file line number Diff line number Diff line change 1- name : release
1+ name : " release"
22
3- on :
3+ on :
44 push :
55 branches :
6- - main
6+ - main
77
88jobs :
9- build :
10- runs-on : ubuntu-latest
11- environment : main
12- concurrency : release
13- if : ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
14- steps :
15- # - name: Generate token from app token #https://github.com/tibdex/github-app-token
16- # id: generate_token
17- # uses: tibdex/github-app-token@v2
18- # with:
19- # app_id: ${{ secrets.RELEASE_BOT_APP_ID }}
20- # private_key: ${{ secrets.RELEASE_BOT_PKEY }}
21-
22- - uses : actions/checkout@v4
23- with :
24- fetch-depth : 0
25- # token: ${{ steps.generate_token.outputs.token }}
26- token : ${{ secrets.P_TOKEN}}
27- - name : configure git
28- run : |
29- git config user.name "${GITHUB_ACTOR}"
30- git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
31- # Note: This workflow uses the latest stable version of the Dart SDK.
32- # You can specify other versions if desired, see documentation here:
33- # https://github.com/dart-lang/setup-dart/blob/main/README.md
34- # - uses: dart-lang/setup-dart@v1
35- -
uses :
dart-lang/[email protected] 36-
37- - uses : bluefireteam/melos-action@v3
38- with :
39- run-versioning : true
40- publish-dry-run : true
41- tag : true
42- create-pr : false
43- env :
44- GH_TOKEN : ${{ secrets.P_TOKEN }}
45-
46- - name : Push Tags
47- run : git push --follow-tags
48-
49- 50- with :
51- lcov-file : ./coverage/lcov.info
9+ dart-pipeline :
10+ uses : affinidi/pipeline-dart/.github/workflows/release.yaml@main
11+ secrets : inherit
You can’t perform that action at this time.
0 commit comments