Skip to content

Commit

Permalink
Merge branch 'master' into DX-1642
Browse files Browse the repository at this point in the history
  • Loading branch information
witwash committed Aug 5, 2024
2 parents 91e6ae1 + 9d4f314 commit b19e813
Show file tree
Hide file tree
Showing 14 changed files with 108 additions and 39 deletions.
44 changes: 44 additions & 0 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Flutter package to pub.dev
description: Publish your Flutter package to pub.dev

inputs:
working-directory:
description: A directory with package to publish
required: true

runs:
using: "composite"
steps:
- name: Git Checkout
uses: actions/checkout@v4

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 3.22.3

- name: Get ID Token
uses: actions/github-script@v6
with:
script: |
let pub_token = await core.getIDToken('https://pub.dev')
core.exportVariable('PUB_TOKEN', pub_token)
- name: Authenticate
shell: bash
run: flutter pub pub token add https://pub.dev --env-var PUB_TOKEN

- name: Install dependencies
shell: bash
run: flutter pub get
working-directory: ${{ inputs.working-directory }}

- name: Dry Run
shell: bash
run: flutter pub publish --dry-run
working-directory: ${{ inputs.working-directory }}

- name: Publish
shell: bash
run: flutter pub publish -f
working-directory: ${{ inputs.working-directory }}
21 changes: 21 additions & 0 deletions .github/workflows/mews_pedantic-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish mews_pedantic to pub.dev

on:
push:
tags:
- "mews_pedantic-v[0-9]+.[0-9]+.[0-9]+*"

jobs:
publish:
name: Publish to pub.dev
runs-on: ubuntu-latest
environment: pub.dev
permissions:
id-token: write
steps:
- name: Clone repository
uses: actions/checkout@v4

- uses: ./.github/actions/publish
with:
working-directory: mews_pedantic
16 changes: 3 additions & 13 deletions .github/workflows/optimus-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,13 @@ jobs:
publish:
name: Publish to pub.dev
runs-on: ubuntu-latest

environment: pub.dev
permissions:
id-token: write

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install Dart
uses: dart-lang/setup-dart@v1
- uses: ./.github/actions/publish
with:
sdk: stable

- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"

- name: Publish to pub.dev
run: flutter pub publish --directory=optimus --force
working-directory: optimus
2 changes: 1 addition & 1 deletion kiosk_mode/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mews_pedantic: ^0.28.0
mews_pedantic: ^0.29.0
flutter:
uses-material-design: true
2 changes: 1 addition & 1 deletion kiosk_mode/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mews_pedantic: ^0.28.0
mews_pedantic: ^0.29.0
flutter:
plugin:
platforms:
Expand Down
6 changes: 6 additions & 0 deletions mews_pedantic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.29.0

> Note: This release has breaking changes.
- **BREAKING** **FEAT**: Upgrade to DCM 1.19.1.

## 0.28.0

> Note: This release has breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion mews_pedantic/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mews_pedantic
description: Dart and Flutter static analysis and lint rules incorporated in Mews.
version: 0.28.0
version: 0.29.0
repository: https://github.com/MewsSystems/mews-flutter

environment:
Expand Down
8 changes: 8 additions & 0 deletions optimus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## 0.36.0

> Note: This release has breaking changes.
- **FEAT**: [DX-1801] Add TextArea component (#632).
- **BREAKING** **REFACTOR**: [DX-1925] Align the naming of the feedback components (#642).
- **BREAKING** **FEAT**: Design Tokens Update 7.0.0 (#644).

## 0.35.0

> Note: This release has breaking changes.
Expand Down
2 changes: 1 addition & 1 deletion optimus/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mews_pedantic: ^0.28.0
mews_pedantic: ^0.29.0
4 changes: 2 additions & 2 deletions optimus/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: optimus
description: Optimus is a design system for mobile platforms (and web in future) used internally in Mews.
version: 0.35.0
version: 0.36.0
repository: https://github.com/MewsSystems/mews-flutter

environment:
Expand All @@ -22,7 +22,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
freezed: ">=1.0.0 <3.0.0"
mews_pedantic: ^0.28.0
mews_pedantic: ^0.29.0
theme_tailor: "^3.0.0"
flutter:
assets:
Expand Down
2 changes: 1 addition & 1 deletion optimus_icons/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mews_pedantic: ^0.28.0
mews_pedantic: ^0.29.0

flutter:
fonts:
Expand Down
2 changes: 1 addition & 1 deletion remote_logger/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ dependencies:

dev_dependencies:
build_runner: ^2.4.8
mews_pedantic: ^0.28.0
mews_pedantic: ^0.29.0
mockito: ^5.4.4
test: ^1.25.2
32 changes: 16 additions & 16 deletions storybook/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -322,58 +322,58 @@ packages:
dependency: "direct main"
description:
name: shared_preferences
sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180
sha256: c3f888ba2d659f3e75f4686112cc1e71f46177f74452d40d8307edc332296ead
url: "https://pub.dev"
source: hosted
version: "2.2.3"
version: "2.3.0"
shared_preferences_android:
dependency: transitive
description:
name: shared_preferences_android
sha256: "1ee8bf911094a1b592de7ab29add6f826a7331fb854273d55918693d5364a1f2"
sha256: "041be4d9d2dc6079cf342bc8b761b03787e3b71192d658220a56cac9c04a0294"
url: "https://pub.dev"
source: hosted
version: "2.2.2"
version: "2.3.0"
shared_preferences_foundation:
dependency: transitive
description:
name: shared_preferences_foundation
sha256: "0a8a893bf4fd1152f93fec03a415d11c27c74454d96e2318a7ac38dd18683ab7"
sha256: "671e7a931f55a08aa45be2a13fe7247f2a41237897df434b30d2012388191833"
url: "https://pub.dev"
source: hosted
version: "2.4.0"
version: "2.5.0"
shared_preferences_linux:
dependency: transitive
description:
name: shared_preferences_linux
sha256: "9f2cbcf46d4270ea8be39fa156d86379077c8a5228d9dfdb1164ae0bb93f1faa"
sha256: "2ba0510d3017f91655b7543e9ee46d48619de2a2af38e5c790423f7007c7ccc1"
url: "https://pub.dev"
source: hosted
version: "2.3.2"
version: "2.4.0"
shared_preferences_platform_interface:
dependency: transitive
description:
name: shared_preferences_platform_interface
sha256: "22e2ecac9419b4246d7c22bfbbda589e3acf5c0351137d87dd2939d984d37c3b"
sha256: "57cbf196c486bc2cf1f02b85784932c6094376284b3ad5779d1b1c6c6a816b80"
url: "https://pub.dev"
source: hosted
version: "2.3.2"
version: "2.4.1"
shared_preferences_web:
dependency: transitive
description:
name: shared_preferences_web
sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a"
sha256: "3a293170d4d9403c3254ee05b84e62e8a9b3c5808ebd17de6a33fe9ea6457936"
url: "https://pub.dev"
source: hosted
version: "2.3.0"
version: "2.4.0"
shared_preferences_windows:
dependency: transitive
description:
name: shared_preferences_windows
sha256: "841ad54f3c8381c480d0c9b508b89a34036f512482c407e6df7a9c4aa2ef8f59"
sha256: "398084b47b7f92110683cac45c6dc4aae853db47e470e5ddcd52cab7f7196ab2"
url: "https://pub.dev"
source: hosted
version: "2.3.2"
version: "2.4.0"
sky_engine:
dependency: transitive
description: flutter
Expand Down Expand Up @@ -588,5 +588,5 @@ packages:
source: hosted
version: "6.5.0"
sdks:
dart: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
dart: ">=3.4.0 <4.0.0"
flutter: ">=3.22.0"
4 changes: 2 additions & 2 deletions storybook/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ dependencies:
sdk: flutter
optimus:
path: ../optimus
shared_preferences: ^2.2.2
shared_preferences: ^2.3.0
storybook_flutter: ^0.14.0
url_launcher: ^6.3.0

dev_dependencies:
flutter_test:
sdk: flutter
mews_pedantic: ^0.28.0
mews_pedantic: ^0.29.0
path: ^1.9.0
flutter:
uses-material-design: true

0 comments on commit b19e813

Please sign in to comment.