Skip to content

Commit

Permalink
add an auto-publish configuration (#36)
Browse files Browse the repository at this point in the history
* add an auto-publish configuration

* update tag pattern

* tweak glob

* glob tweak
  • Loading branch information
devoncarew authored Jan 19, 2023
1 parent 94155f5 commit ca96984
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# A CI configuration to auto-publish pub packages.

name: Publish

on:
pull_request:
branches: [ main ]
push:
tags: [ '[A-z]+-v[0-9]+.[0-9]+.[0-9]+*' ]

jobs:
publish:
if: github.repository_owner == 'dart-lang'
uses: devoncarew/firehose/.github/workflows/publish.yaml@main
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,25 @@ This repository is home to general Dart Ecosystem tools and packages.
| [blast_repo](pkgs/blast_repo/) | A tool to bulk validate and fix GitHub repos. | |
| [corpus](pkgs/corpus/) | A tool to calculate the API usage for a package. | |
| [dart_flutter_team_lints](pkgs/dart_flutter_team_lints/) | An analysis rule set used by the Dart and Flutter teams. | [![pub package](https://img.shields.io/pub/v/dart_flutter_team_lints.svg)](https://pub.dev/packages/dart_flutter_team_lints) |

## Contributions, PRs, and publishing

When contributing to this repo:

- if the package version is a stable semver version (`x.y.z`), the latest
changes have been published to pub. Please add a new changelog section for
your change, rev the service portion of the version, append `-dev`, and update
the pubspec version to agree with the new version
- if the package version ends in `-dev`, the latest changes are unpublished;
please add a new changelog entry for your change in the most recent section.
When we decide to publish the latest changes we'll drop the `-dev` suffix
from the package version
- for PRs, the `Publish` bot will perform basic validation of the info in the
pubspec.yaml and CHANGELOG.md files
- when the PR is merged into the main branch, if the change includes reving to
a new stable version, a repo maintainer will tag that commit with the pubspec
version (e.g., `v1.2.3`); that tag event will trigger the `Publish` bot to
publish a new version of the package to pub.dev

For additional information about contributing, see our
[contributing](CONTRIBUTING.md) page.
2 changes: 0 additions & 2 deletions pkgs/corpus/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: corpus
description: A tool to calculate the API usage for a package.
repository: https://github.com/dart-lang/ecosystem

publish_to: none

environment:
Expand Down
2 changes: 1 addition & 1 deletion pkgs/dart_flutter_team_lints/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.1.0-dev.1
## 0.1.0

- Turn on `strict-casts: true`.

Expand Down
1 change: 1 addition & 0 deletions pkgs/dart_flutter_team_lints/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
![pub package](https://img.shields.io/pub/v/dart_flutter_team_lints.svg)](https://pub.dev/packages/dart_flutter_team_lints)

## What is this?

Expand Down
4 changes: 2 additions & 2 deletions pkgs/dart_flutter_team_lints/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: dart_flutter_team_lints
description: An analysis rule set used by the Dart and Flutter teams.
version: 0.1.0-dev.1
repository: https://github.com/dart-lang/ecosystem/tree/main/packages/dart_flutter_team_lints
version: 0.1.0
repository: https://github.com/dart-lang/ecosystem/tree/main/pkgs/dart_flutter_team_lints

environment:
sdk: '>=2.17.0 <3.0.0'
Expand Down

0 comments on commit ca96984

Please sign in to comment.