Skip to content

Commit eaebe4c

Browse files
committed
.e simplify publish workflow by removing unnecessary steps
.r update test command in analysis workflow
1 parent e91c8a5 commit eaebe4c

2 files changed

Lines changed: 5 additions & 16 deletions

File tree

.github/workflows/analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
run: dart analyze
3131

3232
- name: Run tests (no coverage) to validate for SDK ${{ matrix.sdk }}
33-
run: dart test --no-pub --platform vm
33+
run: dart test --platform vm

.github/workflows/publish.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,9 @@ on:
88

99
jobs:
1010
publish:
11-
name: Publish
12-
runs-on: ubuntu-latest
1311
permissions:
14-
contents: read
1512
id-token: write
16-
17-
steps:
18-
- name: Checkout repository
19-
uses: actions/checkout@v4
20-
21-
- name: Publish to pub.dev
22-
# Reuse the upstream publish workflow from the dart-lang/setup-dart repo which handles OIDC auth
23-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
24-
with:
25-
# If your package lives at the repo root (most common), leave working-directory alone
26-
working-directory: .
27-
sdk: stable
13+
contents: read
14+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
15+
with:
16+
working-directory: .

0 commit comments

Comments
 (0)