From c545a160c5eb550210d75d2aee726ae5af219311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9=20LARIVIERE?= Date: Tue, 24 Jan 2023 09:47:14 +0100 Subject: [PATCH 1/2] Release version 2.2.0 --- .github/workflows/build.yml | 13 +++++++++---- CHANGELOG.md | 8 +++++++- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 82568198e..c1c9b5295 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,6 @@ on: permissions: write-all env: - VERSION: 2.2.0 CONFIG: Release SLN_FILE: Fabulous.sln @@ -15,13 +14,19 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Checkout sources + uses: actions/checkout@v3 + - name: Read last version from CHANGELOG.md + id: changelog_reader + uses: mindsers/changelog-reader-action@v2 + with: + validation_level: warn + path: ./CHANGELOG.md - name: Set nightly version run: | - NIGHTLY_VERSION=${VERSION}-nightly-${GITHUB_RUN_ID} + NIGHTLY_VERSION=${{ steps.changelog_reader.outputs.version }}-nightly-${GITHUB_RUN_ID} echo "Nightly version is $NIGHTLY_VERSION" echo "NIGHTLY_VERSION=$NIGHTLY_VERSION" >> "$GITHUB_ENV" - - name: Checkout sources - uses: actions/checkout@v3 - name: Setup .NET uses: actions/setup-dotnet@v3 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index b935f48b7..b61b11fc7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +_No unreleased changes_ + +## [2.2.0] + ### Added +- Enable ViewAdapter to attach to an existing view (https://github.com/fabulous-dev/Fabulous/pull/1026) - Support for adding modifiers before the body of a CollectionBuilder (https://github.com/fabulous-dev/Fabulous/pull/1035) ## [2.1.1] - 2023-01-14 @@ -20,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Enable ViewAdapter to attach to an existing view (https://github.com/fabulous-dev/Fabulous/pull/1026) -[unreleased]: https://github.com/fabulous-dev/Fabulous/compare/2.1.1...HEAD +[unreleased]: https://github.com/fabulous-dev/Fabulous/compare/2.2.0...HEAD +[2.2.0]: https://github.com/fabulous-dev/Fabulous/releases/tag/2.2.0 [2.1.1]: https://github.com/fabulous-dev/Fabulous/releases/tag/2.1.1 [2.2.0-preview.1]: https://github.com/fabulous-dev/Fabulous/releases/tag/2.2.0-preview.1 From 4e789abe718e760aa2395c6de6a7ed0c94ef3ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9=20LARIVIERE?= Date: Tue, 24 Jan 2023 09:49:05 +0100 Subject: [PATCH 2/2] Format code --- src/Fabulous/Runners.fs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Fabulous/Runners.fs b/src/Fabulous/Runners.fs index 8e623586d..2ef01ba85 100644 --- a/src/Fabulous/Runners.fs +++ b/src/Fabulous/Runners.fs @@ -198,8 +198,7 @@ module ViewAdapters = let definition = WidgetDefinitionStore.get widget.Key - let _node = - definition.AttachView(widget, treeContext, ValueNone, root) + let _node = definition.AttachView(widget, treeContext, ValueNone, root) _root <- root