Skip to content

Commit cb7ecb3

Browse files
authored
[material_ui] Prerelease setup (flutter#12258)
Gets material_ui ready for 0.0.2 to be published. Follows the same pattern as cupertino_ui in flutter/packages#12251. Unlike that PR, I set the change to `minor` instead of `patch`. See flutter/packages#12257 (comment). Plus, changes the dependency on cupertino_ui to reference the published 0.0.2 prerelease. That isn't published yet, so this commit should fail CI until it is published. ~~Depends on flutter/packages#12253
1 parent bc862b6 commit cb7ecb3

9 files changed

Lines changed: 40 additions & 8 deletions

File tree

‎.ci.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ enabled_branches:
99
- main
1010
- release-go_router-\d+\.\d+\.\d+
1111
- release-cupertino_ui-\d+\.\d+\.\d+
12+
- release-material_ui-\d+\.\d+\.\d+
1213

1314
platform_properties:
1415
linux:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Creates Batch Release for material_ui"
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# Run every Monday at 8:00 AM. Update cron as needed.
7+
- cron: "0 8 * * 1"
8+
9+
jobs:
10+
dispatch_release_pr:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Repository Dispatch
16+
uses: peter-evans/repository-dispatch@5fc4efd1a4797ddb68ffd0714a238564e4cc0e6f
17+
with:
18+
event-type: batch-release-pr
19+
client-payload: '{"package": "material_ui"}'
20+

‎.github/workflows/release_from_branches.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- 'release-go_router-*'
66
- 'release-cupertino_ui-*'
7+
- 'release-material_ui-*'
78
permissions:
89
# Release needs to push a tag back to the repo.
910
contents: write

‎.github/workflows/sync_release_pr.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
# As packages opt into batched releases, they need to be added here
77
- 'release-go_router-*'
88
- 'release-cupertino_ui-*'
9+
- 'release-material_ui-*'
910

1011
jobs:
1112
create_sync_pr:

‎packages/material_ui/ci_config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# TODO(stuartmorgan): Remove this; see https://github.com/flutter/flutter/issues/102679
22
exempt_from_excerpts: true
33
release:
4-
batch: false
4+
batch: true
55

66
# Temporarily ignore tests that have yet to have their cross imports fixed.
77
# See https://github.com/flutter/flutter/issues/177028.

‎packages/material_ui/example/pubspec.yaml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ dependencies:
2020

2121
material_ui:
2222
path: ..
23-
cupertino_ui:
24-
# TODO(justinmc): Use the pub.dev package when published.
25-
path: ../../cupertino_ui
23+
cupertino_ui: ^0.0.2
2624

2725
dev_dependencies:
2826
integration_test:
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
changelog: |
2+
- Copies over all Material code from flutter/flutter.
3+
- Copies over Material localizations from flutter/flutter's
4+
flutter_localizations package.
5+
- Unpins material_color_utilities.
6+
- Migrates API doc samples and formatting.
7+
- Updates minimum supported SDK version to Flutter 3.44/Dart 3.12.
8+
version: minor
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Use this file as a template to draft an unreleased changelog file.
2+
# Make a copy of this file in the same directory, give it an appropriate name, and fill in the details.
3+
changelog: |
4+
- Can include a list of changes.
5+
- with markdown supported.
6+
version: <major|minor|patch|skip>

‎packages/material_ui/pubspec.yaml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: material_ui
22
description: The official Flutter Material UI Library, implementing Google's Material Design design system.
33
version: 0.0.1
4-
publish_to: none
54
repository: https://github.com/flutter/packages/tree/main/packages/material_ui
65
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A%20material%20design%22
76

@@ -14,9 +13,7 @@ workspace:
1413

1514
dependencies:
1615
collection: ^1.19.1
17-
cupertino_ui:
18-
# TODO(justinmc): Use the pub.dev package when published.
19-
path: ../cupertino_ui
16+
cupertino_ui: ^0.0.2
2017
flutter:
2118
sdk: flutter
2219
flutter_localizations:

0 commit comments

Comments
 (0)