File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - ' v[0-9]+.[0-9]+.[0-9]+' # Tag pattern to match for publishing
77
8- permissions : # Job-level permissions
9- contents : read # For actions/checkout
10- # id-token: write # Not strictly needed when using PUB_ACCESS_TOKEN/PUB_REFRESH_TOKEN directly
11-
128jobs :
139 publish :
1410 runs-on : ubuntu-latest
11+ permissions :
12+ id-token : write # Required for authentication using OIDC
13+ contents : write
1514 steps :
1615 - name : Checkout repository
1716 uses : actions/checkout@v4
@@ -26,14 +25,19 @@ jobs:
2625 flutter-version : ${{ steps.asdf.outputs.flutter }}
2726 cache : true
2827
29- - name : Activate Melos
28+ - name : Setup Dart for publishing
29+ uses : dart-lang/setup-dart@v1
30+ with :
31+ sdk : ${{ steps.asdf.outputs.dart }}
32+
33+ - name : Setup Melos
3034 run : dart pub global activate melos
3135
3236 - name : Get Melos packages
33- run : melos get
37+ run : melos bootstrap
3438
35- - name : Publish packages with Melos
36- run : melos publish --no-dry-run --yes
39+ - name : Publish package
40+ run : dart pub publish --force
3741
3842 - name : Create GitHub Release
3943 uses : softprops/action-gh-release@v2 # Consider using a more recent version
You can’t perform that action at this time.
0 commit comments