Skip to content

Commit

Permalink
chore: Update min version of Dart SDK to 3.0.0 (#629)
Browse files Browse the repository at this point in the history
* chore: Update min version of Dart SDK to 3.0.0

* Update CI min Dart SDK to 3.0.0

* Remove unnecessary breaks
  • Loading branch information
spydon authored Jan 11, 2024
1 parent cca7187 commit 90ea1c4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
with:
sdk: 2.18.0 # Update when min sdk supported version of `melos` package changes.
sdk: 3.0.0 # Update when min sdk supported version of `melos` package changes.
- name: Run Melos
run: ./.github/workflows/scripts/install-tools.sh

Expand Down
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ignore:
command:
bootstrap:
environment:
sdk: '>=2.18.0 <3.0.0'
sdk: ">=3.0.0 <4.0.0"
dependencies:
ansi_styles: ^0.3.1
args: ^2.0.0
Expand Down
2 changes: 1 addition & 1 deletion packages/conventional_commit/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository: https://github.com/invertase/melos/tree/main/packages/conventional_c
issue_tracker: https://github.com/invertase/melos/issues

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: ">=3.0.0 <4.0.0"

dev_dependencies:
collection: ^1.15.0
Expand Down
3 changes: 0 additions & 3 deletions packages/melos/lib/src/common/versioning.dart
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,11 @@ Version nextVersion(
nextPreMajor++;
nextPreMinor = 0;
nextPrePatch = 0;
break;
case SemverReleaseType.minor:
nextPreMinor++;
nextPrePatch = 0;
break;
case SemverReleaseType.patch:
nextPrePatch++;
break;
}
return Version(
currentVersion.major,
Expand Down
2 changes: 1 addition & 1 deletion packages/melos/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repository: https://github.com/invertase/melos/tree/main/packages/melos
issue_tracker: https://github.com/invertase/melos/issues

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: ">=3.0.0 <4.0.0"

executables:
melos:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: melos_workspace

environment:
sdk: '>=2.18.0 <3.0.0'
sdk: ">=3.0.0 <4.0.0"

# This allows us to use melos on itself during development.
executables:
Expand Down

0 comments on commit 90ea1c4

Please sign in to comment.