Skip to content

Commit 7b9cd66

Browse files
authored
add health and publish workflows (#38)
Uses firehose https://github.com/dart-lang/ecosystem/tree/main/pkgs/firehose Also adds a changelog and removes `publish_to: none` from dart_mcp.
1 parent 04cc082 commit 7b9cd66

File tree

5 files changed

+61
-1
lines changed

5 files changed

+61
-1
lines changed

.github/workflows/health.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Health
2+
on:
3+
pull_request:
4+
branches: [ main ]
5+
types: [opened, synchronize, reopened, labeled, unlabeled]
6+
7+
jobs:
8+
health:
9+
uses: dart-lang/ecosystem/.github/workflows/health.yaml@main
10+
with:
11+
# TODO: Add breaking check once we have a real version published to
12+
# compare against.
13+
checks: "version,changelog,do-not-submit"
14+
flutter_packages: "pkgs/dart_tooling_mcp_server/test_fixtures/counter_app"
15+
sdk: dev
16+
permissions:
17+
pull-requests: write

.github/workflows/post_summaries.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# A CI configuration to write comments on PRs.
2+
3+
name: Comment on the pull request
4+
5+
on:
6+
workflow_run:
7+
workflows:
8+
- Health
9+
- Publish
10+
types:
11+
- completed
12+
13+
jobs:
14+
upload:
15+
uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main
16+
permissions:
17+
pull-requests: write

.github/workflows/publish.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish
4+
5+
on:
6+
pull_request:
7+
branches: [ main ]
8+
types: [opened, synchronize, reopened, labeled, unlabeled]
9+
push:
10+
tags: [ '[A-z0-9]+-v[0-9]+.[0-9]+.[0-9]+*' ]
11+
12+
jobs:
13+
publish:
14+
if: ${{ github.repository_owner == 'dart-lang' }}
15+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
16+
with:
17+
write-comments: false
18+
sdk: dev
19+
permissions:
20+
id-token: write
21+
pull-requests: write

pkgs/dart_mcp/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## 0.1.0-wip
2+
3+
- Initial release, supports all major MCP functionality for both clients and
4+
servers, at protocol version 2024-11-05.
5+
- APIs may change frequently until the 1.0.0 release based on feedback and
6+
needs.

pkgs/dart_mcp/pubspec.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: dart_mcp
22
description: A package for making MCP servers and clients.
3-
publish_to: none
43
version: 0.1.0-wip
54
environment:
65
sdk: ^3.6.1 # The version of dart in the current flutter stable

0 commit comments

Comments
 (0)