Skip to content

Commit 7575ebd

Browse files
authored
Adds auto-publish, dependabot, and no-response hooks to webdev packages (#1933)
auto-publish dependabot no-response
1 parent 2e2873a commit 7575ebd

File tree

6 files changed

+65
-1
lines changed

6 files changed

+65
-1
lines changed

.github/dependabot.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Dependabot configuration file.
2+
# See https://docs.github.com/en/code-security/dependabot/dependabot-version-updates
3+
4+
version: 2
5+
updates:
6+
- package-ecosystem: github-actions
7+
directory: /
8+
schedule:
9+
interval: monthly

.github/workflows/no-response.yml

+34
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

+14
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: [ '[A-z]+-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

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77
| [dwds](dwds/) | A service that proxies between the Chrome debug protocol and the Dart VM service protocol. | [![pub package](https://img.shields.io/pub/v/dwds.svg)](https://pub.dev/packages/dwds) |
88
| [frontend_server_client](frontend_server_client/) | Client code to start and interact with the frontend_server compiler from the Dart SDK. | [![pub package](https://img.shields.io/pub/v/frontend_server_client.svg)](https://pub.dev/packages/frontend_server_client) |
99
| [webdev](webdev/) | A CLI for Dart web development. Provides an easy and consistent set of features for users and tools to build and deploy web applications with Dart. | [![pub package](https://img.shields.io/pub/v/webdev.svg)](https://pub.dev/packages/webdev) |
10+
11+
## Publishing automation
12+
13+
For information about our publishing automation and release process, see
14+
https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

fixtures/_webdevSmoke/pubspec.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ name: _webdev_smoke
66
description:
77
A test fixture for webdev testing with weak null-safety.
88

9+
publish_to: none
910

1011
# The versions in this pubspec should match the requirements
1112
# defined by webdev. That is the SDK constraint should be the

fixtures/_webdevSoundSmoke/pubspec.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: _webdev_smoke
22
description: A test fixture for webdev testing with sound support.
33

4+
publish_to: none
5+
46
environment:
57
sdk: ">=3.0.0-134.0.dev <4.0.0"
68

79
dev_dependencies:
810
build_runner: ^2.4.0
911
build_web_compilers: ^4.0.0
10-

0 commit comments

Comments
 (0)