Skip to content

Commit 9e5f2d5

Browse files
Update publish.yml.twig
1 parent d7016d6 commit 9e5f2d5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

templates/dart/.github/workflows/publish.yml.twig

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ name: Publish to pub.dev
33
on:
44
push:
55
tags:
6-
- '[0-9]+\.[0-9]+\.[0-9]+.*'
6+
- '[0-9]+.[0-9]+.[0-9]+*' # tag pattern on pub.dev: 'v{{version}'
77
88
jobs:
99
publish:
1010
permissions:
11-
id-token: write
12-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
13-
with:
14-
environment: pub.dev
11+
id-token: write # Required for authentication using OIDC
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: dart-lang/setup-dart@v1
16+
- name: Install dependencies
17+
run: dart pub get
18+
- name: Publish
19+
run: dart pub publish --force

0 commit comments

Comments
 (0)