Skip to content

Commit 394db3e

Browse files
authored
ci: automate releases (#161)
1 parent 7b45e8a commit 394db3e

File tree

7 files changed

+229
-51
lines changed

7 files changed

+229
-51
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: release_please
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: true
6+
7+
on:
8+
workflow_dispatch:
9+
push:
10+
branches:
11+
- main
12+
13+
jobs:
14+
create_release_pr:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: googleapis/release-please-action@v4
19+
with:
20+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
21+
manifest-file: ".release-please-manifest.json"
22+
config-file: ".release-please-config.json"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: verify_version
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
8+
jobs:
9+
verify-version:
10+
if: github.head_ref == 'release-please--branches--main--components--very_good_analysis'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v5
14+
15+
- uses: dart-lang/setup-dart@v1
16+
17+
- name: Verify version consistency
18+
run: dart run tool/verify_version/main.dart

.release-please-config.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"changelog-sections": [
4+
{ "type": "feat", "section": "Features" },
5+
{ "type": "fix", "section": "Bug Fixes" },
6+
{ "type": "refactor","section": "Refactors" },
7+
{ "type": "chore", "section": "Miscellaneous Chores" },
8+
{ "type": "docs", "section": "Docs" }
9+
],
10+
"pull-request-header": ":rotating_light: There are changes ready for release :rocket:\n\nℹ Merge this PR once the team confirms the release is ready.\n",
11+
"pull-request-title-pattern": "chore: ${version}",
12+
"include-component-in-tag": false,
13+
"packages": {
14+
".": {
15+
"release-type": "dart",
16+
"changelog-path": "CHANGELOG.md",
17+
"version-file": "pubspec.yaml"
18+
}
19+
},
20+
"exclude-paths": [
21+
".github",
22+
".release-please-manifest.json",
23+
".release-please-config.json",
24+
"CONTRIBUTING.md",
25+
"tool"
26+
]
27+
}

.release-please-manifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
".": "9.0.0"
3+
}
4+

CHANGELOG.md

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
1-
# 9.0.0
1+
2+
## 9.0.0
23

34
- chore(deps): bump peter-evans/create-pull-request from 7.0.6 to 7.0.8 [139](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/139)
45
- chore: release 9.0.0-rc.1 [154](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/154)
56

6-
# 9.0.0-rc.1
7+
## 9.0.0-rc.1
78

89
- feat: support Dart 3.8.0 [152](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/152)
910

10-
# 8.0.0
11+
## 8.0.0
1112

1213
- chore: release 8.0.0-rc.1
1314
- fix: remove `omit_obvious_property_types` as it conflicts with `type_annotate_public_apis` [148](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/148)
1415

15-
# 8.0.0-rc.1
16+
## 8.0.0-rc.1
1617

1718
- feat: add `omit_obvious_property_types` [143](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/143)
1819
- feat: add `specify_nonobvious_property_types` [143](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/143)
1920
- feat: add `strict_top_level_inference` [143](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/143)
2021
- feat: add `unnecessary_underscores` [143](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/143)
2122
- feat: remove `require_trailing_commas` [143](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/143)
2223

23-
# 7.0.0
24+
## 7.0.0
2425

2526
- chore: release 7.0.0-dev.1
2627

27-
# 7.0.0-dev.1
28+
## 7.0.0-dev.1
2829

2930
- feat: add `document_ignores` [125](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/125)
3031
- feat: remove `avoid_null_checks_in_equality_operators` [124](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/124)
@@ -36,11 +37,11 @@
3637
- docs: update exclusion reasons [109](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/109)
3738
- docs: update commands in contributing [110](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/110)
3839

39-
# 6.0.0
40+
## 6.0.0
4041

4142
- chore: release 6.0.0-dev.1
4243

43-
# 6.0.0-dev.1
44+
## 6.0.0-dev.1
4445

4546
- feat!: upgrade to support Dart `^3.4.0`
4647
- feat: additional lint rules:
@@ -49,18 +50,18 @@
4950
- [no_wildcard_variable_uses](https://dart.dev/tools/linter-rules/no_wildcard_variable_uses)
5051
- docs: include exclusion reason table ([100](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/100), [102](https://github.com/VeryGoodOpenSource/very_good_analysis/pull/102))
5152

52-
# 5.1.0
53+
## 5.1.0
5354

5455
- fix: remove deprecated `iterable_contains_unrelated_type` lint
5556
- fix: remove deprecated `list_remove_unrelated_type` lint
5657
- fix(docs): full list of rules
5758
- feat: type equality checks should be warnings/errors
5859

59-
# 5.0.0+1
60+
## 5.0.0+1
6061

6162
- docs: minor updates to documentation in `README.md`
6263

63-
# 5.0.0
64+
## 5.0.0
6465

6566
- feat!: upgrade to support Dart `^3.0.0`
6667
- feat: added analysis warning as error:
@@ -75,11 +76,11 @@
7576
- refactor: remove malfunctioning rules:
7677
- [`use_decorated_box`](https://github.com/VeryGoodOpenSource/very_good_analysis/issues/65)
7778

78-
# 4.0.0+1
79+
## 4.0.0+1
7980

8081
- docs: minor updates to documentation in `README.md`
8182

82-
# 4.0.0
83+
## 4.0.0
8384

8485
- feat!: upgrade to support Dart `^2.19.0`
8586
- feat: additional lint rules:
@@ -99,7 +100,7 @@
99100
- [avoid_returning_null](https://dart-lang.github.io/linter/lints/avoid_returning_null.html)
100101
- [avoid_returning_null_for_future](https://dart-lang.github.io/linter/lints/avoid_returning_null_for_future.html)
101102

102-
# 3.1.0
103+
## 3.1.0
103104

104105
- **BREAKING** refactor: remove deprecated `unawaited` (use `unawaited` from `dart:async` instead).
105106
- feat: additional lint rules:
@@ -112,12 +113,12 @@
112113
- [use_if_null_to_convert_nulls_to_bools](https://dart-lang.github.io/linter/lints/use_if_null_to_convert_nulls_to_bools.html)
113114
- [use_test_throws_matchers](https://dart-lang.github.io/linter/lints/use_test_throws_matchers.html)
114115

115-
# 3.0.2
116+
## 3.0.2
116117

117118
- fix: remove deprecated `invariant_booleans` lint
118119
- fix: deprecate `unawaited` (use `unawaited` from `dart:async` instead).
119120

120-
# 3.0.1
121+
## 3.0.1
121122

122123
- feat: use analyzer language modes instead of deprecated `strong-mode`
123124
```yaml
@@ -127,7 +128,7 @@
127128
strict-raw-types: true
128129
```
129130
130-
# 3.0.0
131+
## 3.0.0
131132
132133
- feat!: upgrade to support Dart `^2.17.0`
133134
- feat: additional lint rules:
@@ -141,7 +142,7 @@
141142
- [use_enums](https://dart-lang.github.io/linter/lints/use_enums.html)
142143
- [use_super_parameters](https://dart-lang.github.io/linter/lints/use_super_parameters.html)
143144

144-
# 2.4.0
145+
## 2.4.0
145146

146147
- feat: additional lint rules:
147148
- [`avoid_js_rounded_ints`](https://dart-lang.github.io/linter/lints/avoid_js_rounded_ints.html)
@@ -160,7 +161,7 @@
160161
- [`require_trailing_commas`](https://dart-lang.github.io/linter/lints/require_trailing_commas.html)
161162
- [`use_is_even_rather_than_modulo`](https://dart-lang.github.io/linter/lints/use_is_even_rather_than_modulo.html)
162163

163-
# 2.3.0
164+
## 2.3.0
164165

165166
- feat: additional analysis errors:
166167
- `missing_required_param`
@@ -206,27 +207,27 @@
206207
- [`unnecessary_parenthesis`](https://dart-lang.github.io/linter/lints/unnecessary_parenthesis.html)
207208
- [`unnecessary_raw_strings`](https://dart-lang.github.io/linter/lints/unnecessary_raw_strings.html)
208209

209-
# 2.2.0
210+
## 2.2.0
210211

211212
- feat: additional lint rules:
212213
- `always_use_package_imports`
213214
- `avoid_returning_null_for_future`
214215
- `avoid_slow_async_io`
215216
- `avoid_type_to_string`
216217

217-
# 2.1.2
218+
## 2.1.2
218219

219220
- refactor: remove deprecated `pedantic` dependency
220221
- ci: improvements to ensure max pub score
221222
- docs: minor documentation and package description updates
222223

223-
# 2.1.1
224+
## 2.1.1
224225

225226
- docs: update `README` to include latest version
226227
- docs: reword package description
227228
- docs: consolidate `README` links
228229

229-
# 2.1.0
230+
## 2.1.0
230231

231232
- feat: update sdk constraint to v2.12.0 stable
232233
- feat: additional lint rules:
@@ -255,34 +256,34 @@
255256
- `use_full_hex_values_for_flutter_colors`
256257
- `void_checks`
257258

258-
# 2.0.3
259+
## 2.0.3
259260

260261
- feat: additional linter rule:
261262
- `sort_child_properties_last`
262263

263-
# 2.0.2
264+
## 2.0.2
264265

265266
- feat: additional linter rule:
266267
- `use_key_in_widget_constructors`
267268

268-
# 2.0.1
269+
## 2.0.1
269270

270271
- feat: additional linter rule:
271272
- `avoid_dynamic_calls`
272273

273-
# 2.0.0
274+
## 2.0.0
274275

275276
- feat: stable null safe release
276277

277-
# 2.0.0-nullsafety.0
278+
## 2.0.0-nullsafety.0
278279

279280
- chore: migrate to null safety
280281

281-
# 1.0.4
282+
## 1.0.4
282283

283284
- docs: README and metadata updates
284285

285-
# 1.0.3
286+
## 1.0.3
286287

287288
- feat: additional linter rules
288289
- `avoid_print`
@@ -292,15 +293,15 @@
292293
- `prefer_const_declarations`
293294
- `sized_box_for_whitespace`
294295

295-
# 1.0.2
296+
## 1.0.2
296297

297298
- feat: add test/.test_coverage.dart to the list of ignored files
298299

299-
# 1.0.1
300+
## 1.0.1
300301

301302
- docs: README improvements
302303
- docs: inline documentation improvements
303304

304-
# 1.0.0
305+
## 1.0.0
305306

306307
- Add `analysis_options` used at [Very Good Ventures](https://verygood.ventures)

0 commit comments

Comments
 (0)