File tree Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Expand file tree Collapse file tree 1 file changed +23
-11
lines changed Original file line number Diff line number Diff line change @@ -23,24 +23,36 @@ jobs:
2323 run : melos get
2424 - name : Run tests
2525 run : melos test --no-select
26-
27-
28- publish-helper :
29- if : ${{ contains(github.ref, 'helper') }}
26+
27+ publish-insights :
28+ if : ${{ contains(github.ref, 'insights') }}
3029 needs :
3130 - check
3231 permissions :
3332 id-token : write
34- uses : dart-lang/setup-dart/.github/workflows/publish.yaml @v1
33+ uses : dart-lang/setup-dart/.github/workflows/publish.yml @v1
3534 with :
36- working-directory : helper
37-
38- publish-insights :
39- if : ${{ contains(github.ref, 'insights') }}
35+ working-directory : insights
36+
37+ # Helps insights get published first to prevent
38+ # the helper being penalized by pub.dev's scoring system
39+ delay-publish-helper :
40+ if : ${{ contains(github.ref, 'helper') }}
41+ runs-on : ubuntu-latest
4042 needs :
4143 - check
44+ steps :
45+ - name : Wait for 30 seconds
46+ run : sleep 30s
47+ shell : bash
48+
49+ publish-helper :
50+ if : ${{ contains(github.ref, 'helper') }}
51+ needs :
52+ - check
53+ - delay-publish-helper
4254 permissions :
4355 id-token : write
44- uses : dart-lang/setup-dart/.github/workflows/publish.yaml @v1
56+ uses : dart-lang/setup-dart/.github/workflows/publish.yml @v1
4557 with :
46- working-directory : insights
58+ working-directory : helper
You can’t perform that action at this time.
0 commit comments