Skip to content

Commit cabb38c

Browse files
committed
Fix publish workflow
1 parent 4008624 commit cabb38c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/publish.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,16 @@ on:
77

88
jobs:
99
publish:
10-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
10+
# https://dart.dev/tools/pub/automated-publishing#configuring-a-github-action-workflow-for-publishing-to-pubdev
11+
permissions:
12+
id-token: write # This is required for authentication using OIDC
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: dart-lang/setup-dart@v1
17+
- name: Install dependencies
18+
run: dart pub get
19+
# Remove submodule to make dart pub validation happy
20+
- run: rm -r test/shared-client-testcases/
21+
- name: Publish
22+
run: dart pub publish --force

0 commit comments

Comments
 (0)