Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Commit 04c9346

Browse files
authored
blast_repo fixes (#230)
* blast_repo fixes auto-publish * publish from master
1 parent ac0e2c8 commit 04c9346

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

.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: [ 'v[0-9]+.[0-9]+.[0-9]+*' ]
10+
11+
jobs:
12+
publish:
13+
if: ${{ github.repository_owner == 'dart-lang' }}
14+
uses: devoncarew/firehose/.github/workflows/publish.yaml@main

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 2.3.2-dev
1+
## 2.3.2
22

33
* Require Dart 2.18
44

README.md

+21
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ class StashCommand extends Command {
377377
```
378378

379379
### Default Help Command
380+
380381
[CommandRunner][] automatically adds a `help` command that displays usage
381382
information for commands, as well as support for the `--help` flag for all
382383
commands. If it encounters an error parsing the arguments or processing a
@@ -442,6 +443,26 @@ The resulting string looks something like this:
442443
[ia32] Intel x86
443444
```
444445

446+
## Contributions, PRs, and publishing
447+
448+
When contributing to this repo:
449+
450+
- if the package version is a stable semver version (`x.y.z`), the latest
451+
changes have been published to pub. Please add a new changelog section for
452+
your change, rev the service portion of the version, append `-dev`, and update
453+
the pubspec version to agree with the new version
454+
- if the package version ends in `-dev`, the latest changes are unpublished;
455+
please add a new changelog entry for your change in the most recent section.
456+
When we decide to publish the latest changes we'll drop the `-dev` suffix
457+
from the package version
458+
- for PRs, the `Publish` bot will perform basic validation of the info in the
459+
pubspec.yaml and CHANGELOG.md files
460+
- when the PR is merged into the main branch, if the change includes reving to
461+
a new stable version, a repo maintainer will tag that commit with the pubspec
462+
version (e.g., `v1.2.3`); that tag event will trigger the `Publish` bot to
463+
publish a new version of the package to pub.dev
464+
465+
445466
[posix]: https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02
446467
[gnu]: https://www.gnu.org/prep/standards/standards.html#Command_002dLine-Interfaces
447468
[ArgParser]: https://pub.dev/documentation/args/latest/args/ArgParser/ArgParser.html

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: args
2-
version: 2.3.2-dev
2+
version: 2.3.2
33
description: >-
44
Library for defining parsers for parsing raw command-line arguments into a set
55
of options and values using GNU and POSIX style options.

0 commit comments

Comments
 (0)