Skip to content

Commit f1011be

Browse files
authored
blast_repo fixes (#645)
auto-publish no-response add publish_to: none to example packages
1 parent da247b2 commit f1011be

File tree

6 files changed

+57
-0
lines changed

6 files changed

+57
-0
lines changed

.github/workflows/no-response.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# A workflow to close issues where the author hasn't responded to a request for
2+
# more information; see https://github.com/godofredoc/no-response for docs.
3+
4+
name: No Response
5+
6+
# Both `issue_comment` and `scheduled` event types are required.
7+
on:
8+
issue_comment:
9+
types: [created]
10+
schedule:
11+
# Every day at 8am
12+
- cron: '0 8 * * *'
13+
14+
# All permissions not specified are set to 'none'.
15+
permissions:
16+
issues: write
17+
18+
jobs:
19+
noResponse:
20+
runs-on: ubuntu-latest
21+
if: ${{ github.repository_owner == 'dart-lang' }}
22+
steps:
23+
- uses: godofredoc/no-response@0ce2dc0e63e1c7d2b87752ceed091f6d32c9df09
24+
with:
25+
responseRequiredLabel: "needs-info"
26+
responseRequiredColor: 4774bc
27+
daysUntilClose: 14
28+
# Comment to post when closing an Issue for lack of response.
29+
closeComment: >
30+
Without additional information we're not able to resolve this issue,
31+
so it will be closed at this time. You're still free to add more
32+
info and respond to any questions above, though. We'll reopen the
33+
issue if you do. Thanks for your contribution!
34+
token: ${{ github.token }}

.github/workflows/publish.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# A CI configuration to auto-publish pub packages.
2+
3+
name: Publish
4+
5+
on:
6+
pull_request:
7+
branches: [ master ]
8+
push:
9+
tags: [ 'v[0-9]+.[0-9]+.[0-9]+*' ]
10+
11+
jobs:
12+
publish:
13+
if: ${{ github.repository_owner == 'dart-lang' }}
14+
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main

_test_annotations/pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: _test_annotations
2+
publish_to: none
3+
24
environment:
35
sdk: '>=2.17.0 <3.0.0'
46

example/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: source_gen_example
2+
publish_to: none
23

34
environment:
45
sdk: ">=2.17.0 <3.0.0"

example_usage/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: source_gen_example_usage
2+
publish_to: none
23

34
environment:
45
sdk: '>=2.18.0 <3.0.0'

source_gen/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,8 @@ wraps a single Generator to make a `Builder` which creates Dart library files.
216216
[Full example package]: https://github.com/dart-lang/source_gen/tree/master/example
217217
[example usage]: https://github.com/dart-lang/source_gen/tree/master/example_usage
218218
[outputs]: https://github.com/dart-lang/build/blob/master/docs/writing_a_builder.md#configuring-outputs
219+
220+
## Publishing automation
221+
222+
For information about our publishing automation and release process, see
223+
https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

0 commit comments

Comments
 (0)