Skip to content

Commit 5406627

Browse files
committed
update publish.yml
1 parent 5441503 commit 5406627

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,28 @@ on:
66
types:
77
- completed
88

9+
permissions:
10+
contents: read
11+
id-token: write
12+
913
jobs:
1014
publish:
11-
permissions:
12-
id-token: write
13-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Setup Dart
22+
uses: dart-lang/setup-dart@v1
23+
24+
- name: Install dependencies
25+
run: dart pub get
26+
27+
- name: Verify package
28+
run: dart pub publish --dry-run
29+
30+
- name: Publish to pub.dev
31+
run: dart pub publish
32+
env:
33+
PUB_DEV_ACCESS_TOKEN: ${{ secrets.TOKEN }}

0 commit comments

Comments
 (0)