From 4a67bbfe39ab17065b89aad704ef1c2b711c6e70 Mon Sep 17 00:00:00 2001 From: meili-bot <74670311+meili-bot@users.noreply.github.com> Date: Wed, 17 May 2023 15:35:38 -0300 Subject: [PATCH 1/2] Update version to the next release v0.13 --- README.md | 2 +- lib/src/version.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 478599d4..52bd7bcb 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ You can install the **meilisearch** package by adding a few lines into `pubspec. ```yaml dependencies: - meilisearch: ^0.12.0 + meilisearch: ^0.13.0 ``` Then open your terminal and update dart packages. diff --git a/lib/src/version.dart b/lib/src/version.dart index 2624187b..2eab51de 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1,5 +1,5 @@ class Version { - static const String current = '0.12.0'; + static const String current = '0.13.0'; static String get qualifiedVersion { return "Meilisearch Dart (v$current)"; diff --git a/pubspec.yaml b/pubspec.yaml index 0e6ccd43..60e3a9e3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: meilisearch description: Meilisearch Dart is the Meilisearch API client for Dart and Flutter developers. -version: 0.12.0 +version: 0.13.0 homepage: https://meilisearch.com repository: https://github.com/meilisearch/meilisearch-dart issue_tracker: https://github.com/meilisearch/meilisearch-dart/issues From 4439c6fa631ac4c02d52d005b07a37553b717be5 Mon Sep 17 00:00:00 2001 From: Bruno Casali Date: Wed, 17 May 2023 15:42:06 -0300 Subject: [PATCH 2/2] Remove old checks on check-release.sh --- .github/scripts/check-release.sh | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/scripts/check-release.sh b/.github/scripts/check-release.sh index 33adda25..b0ca6859 100644 --- a/.github/scripts/check-release.sh +++ b/.github/scripts/check-release.sh @@ -4,25 +4,19 @@ current_tag=$(echo $GITHUB_REF | cut -d '/' -f 3 | sed -r 's/^v//') file1='pubspec.yaml' -file2='example/pubspec.yaml' -file3='example/pubspec.lock' -file4='README.md' -file5='lib/src/version.dart' +file2='README.md' +file3='lib/src/version.dart' changelog_file='CHANGELOG.md' ret=0 file_tag1=$(grep '^version: ' $file1 | cut -d ':' -f 2 | tr -d ' ') -file_tag2=$(grep 'meilisearch: "' $file2 | cut -d ':' -f 2 | tr -d '"' | tr -d ' ') -file_tag3=$(grep 'meilisearch' -A 6 $file3 | grep 'version: ' | cut -d ':' -f2 | tr -d '"' | tr -d ' ') -file_tag4=$(grep 'meilisearch: ' $file4 | cut -d '^' -f2) -file_tag5=$(grep -o "[0-9\.]" $file5 | tr -d '[:space:]') -if [ "$current_tag" != "$file_tag1" ] || [ "$current_tag" != "$file_tag2" ] || [ "$current_tag" != "$file_tag3" ] || [ "$current_tag" != "$file_tag4" ] || [ "$current_tag" != "$file_tag5" ]; then +file_tag2=$(grep 'meilisearch: ' $file2 | cut -d '^' -f2) +file_tag3=$(grep -o "[0-9\.]" $file3 | tr -d '[:space:]') +if [ "$current_tag" != "$file_tag1" ] || [ "$current_tag" != "$file_tag2" ] || [ "$current_tag" != "$file_tag3" ]; then echo "Error: the current tag does not match the version in package file(s)." echo "$file1: found $file_tag1 - expected $current_tag" echo "$file2: found $file_tag2 - expected $current_tag" echo "$file3: found $file_tag3 - expected $current_tag" - echo "$file4: found $file_tag4 - expected $current_tag" - echo "$file5: found $file_tag5 - expected $current_tag" ret=1 fi