Skip to content

Commit

Permalink
[Release 2.0.0-alpha.4] (#1569)
Browse files Browse the repository at this point in the history
* [Release 2.0.0-alpha.4]

* Try to use the realm ci pat

* Add labels to release PRs

* Update download-artifact

* ephemeral dirs added during integration test introduce cyclic links

* Bring back the old publishing

* Add --skip-validation

---------

Co-authored-by: nielsenko <nielsenko@users.noreply.github.com>
Co-authored-by: Nikola Irinchev <irinchev@me.com>
Co-authored-by: Kasper Overgård Nielsen <kasper@byolimit.com>
  • Loading branch information
4 people authored Mar 15, 2024
1 parent c65da9d commit eb9aa4f
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 21 deletions.
1 change: 1 addition & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,4 @@ jobs:
body: An automated PR for next release.
commit-message: '[Release ${{ steps.update-changelog.outputs.new-version }}]'
token: ${{ secrets.REALM_CI_PAT }}
labels: no-jira-ticket
21 changes: 15 additions & 6 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,13 @@ jobs:
dart pub global run melos bootstrap
- name: Download all artifacts
uses: dawidd6/action-download-artifact@d0f291cf39bd21965ea9c4c6e210fc355c3844ed
uses: dawidd6/action-download-artifact@71072fbb1229e1317f1a8de6b04206afb461bd67 # 3.1.2
with:
workflow: ci.yml
commit: ${{ github.sha }}
path: ${{ github.workspace }}/binary/
workflow_conclusion: completed
github_token: ${{ secrets.REALM_CI_PAT }}

# The rename is necessary because action-download-artifact will put things in a folder named the same
# as the artifact name - i.e. librealm-linux, etc.
Expand Down Expand Up @@ -81,12 +82,14 @@ jobs:
working-directory: release

# realm_flutter has symlinks to native binaries which should not be packaged
- name: Cleanup binary symlinks
- name: Cleanup symlinks, etc.
run: |
rm packages/realm/android/src/main/cpp/lib
rm packages/realm/ios/realm_dart.xcframework
rm packages/realm/linux/binary
rm packages/realm/windows/binary
rm -rf packages/realm/tests/linux/flutter/ephemeral
rm -rf packages/realm/tests/windows/flutter/ephemeral
- name: Package realm (flutter)
run: |
Expand Down Expand Up @@ -169,13 +172,18 @@ jobs:
dart pub global run melos bootstrap
- name: Publish packages to pub.dev
# Using just:
# melos publish --no-dry-run --yes
# will fail currently
# Using
# melos exec --no-published --no-private -- dart pub publish --force --skip-validation
# will fail due to symlinks in the realm package. Once we get rid of them, we can replace
# the manual publishing with using melos
run: |
mkdir -p $HOME/.config/dart
echo '${{ secrets.PUB_CREDENTIALS }}' >> $HOME/.config/dart/pub-credentials.json
melos exec --no-published --no-private -- dart pub publish --force --skip-validation
dart pub publish --directory realm_common --force --skip-validation
dart pub publish --directory realm_generator --force --skip-validation
dart pub publish --directory realm_dart --force --skip-validation
dart pub publish --directory realm --force --skip-validation
working-directory: release

- name: Find Release PR
uses: juliangruber/find-pull-request-action@f9f7484f8237cf8485e5ab826e542ba5dd9e9c6e
Expand Down Expand Up @@ -235,6 +243,7 @@ jobs:
branch: vnext-changelog
title: Add vNext Changelog header
body: Update Changelog for vNext
labels: no-jira-ticket
delete-branch: true
base: main
commit-message: Add vNext Changelog header
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## vNext
## 2.0.0-alpha.4 (2024-03-15)

### Breaking Changes
* `RealmValue.type` is now an enum of type `RealmValueType` rather than `Type`. If you need the runtime type of the value wrapped in `RealmValue`, use `RealmValue.value.runtimeType`. (Issue [#1505](https://github.com/realm/realm-dart/issues/1505))
Expand Down
2 changes: 1 addition & 1 deletion packages/realm/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
realm: ^2.0.0-alpha.2
realm: ^2.0.0-alpha.4
characters: ^1.1.0

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion packages/realm/ios/realm.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ puts "bundleId is #{bundleId}"

Pod::Spec.new do |s|
s.name = 'realm'
s.version = '2.0.0-alpha.2'
s.version = '2.0.0-alpha.4'
s.summary = 'The official Realm SDK for Flutter'
s.description = <<-DESC
Realm is a mobile database - an alternative to SQLite and key-value stores.
Expand Down
2 changes: 1 addition & 1 deletion packages/realm/macos/realm.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ puts "bundleId is #{bundleId}"

Pod::Spec.new do |s|
s.name = 'realm'
s.version = '2.0.0-alpha.2'
s.version = '2.0.0-alpha.4'
s.summary = 'The official Realm SDK for Flutter'
s.description = <<-DESC
Realm is a mobile database - an alternative to SQLite and key-value stores.
Expand Down
4 changes: 2 additions & 2 deletions packages/realm/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: realm
description: The official Realm SDK for Flutter. Realm is a mobile database - an alternative to SQLite and key-value stores.
version: 2.0.0-alpha.2
version: 2.0.0-alpha.4

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand All @@ -13,7 +13,7 @@ environment:
dependencies:
flutter:
sdk: flutter
realm_dart: ^2.0.0-alpha.2
realm_dart: ^2.0.0-alpha.4

flutter:
plugin:
Expand Down
2 changes: 1 addition & 1 deletion packages/realm_common/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: >-
Hosts the common code shared between realm, realm_dart and realm_generator packages.
This package is part of the official Realm Flutter and Realm Dart SDKs.
version: 2.0.0-alpha.2
version: 2.0.0-alpha.4

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import 'options.dart';
import '../common/utils.dart';

// stamped into the library by the build system (see prepare-release.yml)
const realmCoreVersion = '14.0.0';
const realmCoreVersion = '14.2.0';

class MetricsCommand extends Command<void> {
@override
Expand Down
2 changes: 1 addition & 1 deletion packages/realm_dart/lib/src/native/realm_core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ final _pluginLib = () {
}();

// stamped into the library by the build system (see prepare-release.yml)
const libraryVersion = '2.0.0-alpha.2';
const libraryVersion = '2.0.0-alpha.4';

_RealmCore realmCore = _RealmCore();

Expand Down
6 changes: 3 additions & 3 deletions packages/realm_dart/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: realm_dart
description: The official Realm SDK for Dart. Realm is a mobile database - an alternative to SQLite and key-value stores.
version: 2.0.0-alpha.2
version: 2.0.0-alpha.4

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand All @@ -23,8 +23,8 @@ dependencies:
path: ^1.0.0
pubspec_parse: ^1.0.0
pub_semver: ^2.1.0
realm_common: ^1.8.0
realm_generator: ^1.8.0
realm_common: ^2.0.0-alpha.4
realm_generator: ^2.0.0-alpha.4
tar: ^1.0.1
build_runner: ^2.1.0
http: ^1.0.0
Expand Down
2 changes: 1 addition & 1 deletion packages/realm_dart/src/realm_dart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ RLM_API void realm_dart_invoke_unlock_callback(realm_userdata_t error, void* unl
// Stamped into the library by the build system (see prepare-release.yml)
// Keep this method as it is written and do not format it.
// We have a github workflow that looks for and replaces this string as it is written here.
RLM_API const char* realm_dart_library_version() { return "2.0.0-alpha.2"; }
RLM_API const char* realm_dart_library_version() { return "2.0.0-alpha.4"; }

//for debugging only
// RLM_API void realm_dart_gc() {
Expand Down
4 changes: 2 additions & 2 deletions packages/realm_generator/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: >-
Generates RealmObject classes from Realm data model classes.
This package is part of the official Realm Flutter and Realm Dart SDKs.
version: 2.0.0-alpha.2
version: 2.0.0-alpha.4

homepage: https://www.realm.io
repository: https://github.com/realm/realm-dart
Expand All @@ -17,7 +17,7 @@ dependencies:
build_resolvers: ^2.0.9
build: ^2.0.0
dart_style: ^2.2.0
realm_common: ^1.8.0
realm_common: ^2.0.0-alpha.4
source_gen: ^1.1.0
source_span: ^1.8.0

Expand Down

0 comments on commit eb9aa4f

Please sign in to comment.