Skip to content

Commit

Permalink
chore(release): temp changes to publish 11.0.0 (will revert changes o…
Browse files Browse the repository at this point in the history
…f this commit)
  • Loading branch information
EchoEllet committed Oct 27, 2024
1 parent 5e33aa9 commit fab53e5
Show file tree
Hide file tree
Showing 7 changed files with 1,458 additions and 1,486 deletions.
42 changes: 1 addition & 41 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ jobs:
steps:
- name: 📦 Checkout repository
uses: actions/checkout@v4
# Needed for commit and push changes
with:
# TODO: Try to not hardcode the branch name
ref: master
fetch-depth: 0 # To get all tags

- name: 📄 Upload LICENSE file to release assets
uses: softprops/action-gh-release@v2
Expand Down Expand Up @@ -50,42 +45,7 @@ jobs:
# - name: Update the authorization requests to "https://pub.dev" to use the environment variable "PUB_TOKEN".
# run: dart pub token add https://pub.dev --env-var PUB_TOKEN

# Before publishing the new packages, update the version for all the packages first

# Extract version from the tag (handles the 'v' prefix)
- name: 🏷️ Extract version from tag as pubspec.yaml version
id: extract_version
run: |
version=$(echo ${GITHUB_REF} | sed 's/^refs\/tags\/v\(.*\)$/\1/')
echo "VERSION=${version}" >> $GITHUB_OUTPUT
- name: ✅ Validate extracted version format (should be pubspec.yaml valid version)
run: |
version=${{ steps.extract_version.outputs.VERSION }}
if [[ ! $version =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z.-]+)?(\+[0-9A-Za-z.-]+)?$ ]]; then
echo "❌ Invalid version format: $version. The version must be a valid pubspec.yaml version"
exit 1
fi
- name: 🏷️ Extract release tag
id: release_tag
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT

- name: 📑 Fetch release notes from Github API and create a required file by the next step
run: dart ./scripts/create_version_content_from_github_release.dart "${{ github.repository }}" "${{ steps.release_tag.outputs.tag }}"

- name: 📝 Update version and CHANGELOG for all the packages
run: dart ./scripts/update_package_version.dart ${{ steps.extract_version.outputs.VERSION }}

- name: 💾 Commit updated version and CHANGELOG
id: auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore(version): update to version ${{ steps.extract_version.outputs.VERSION }}"

- name: 🔍 Verify changes made by the script
if: steps.auto-commit-action.outputs.changes_detected == 'true'
run: echo "✅ Changes have been committed."


- name: 🔄 Check if package is ready for publishing
run: flutter pub publish --dry-run
Expand Down
1,440 changes: 722 additions & 718 deletions CHANGELOG.md

Large diffs are not rendered by default.

1,440 changes: 722 additions & 718 deletions flutter_quill_extensions/CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion flutter_quill_extensions/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_quill_extensions
description: Embed extensions for flutter_quill including image, video, formula and etc.
version: 10.8.5
version: 11.0.0-dev.0
homepage: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions/
repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_extensions/
issue_tracker: https://github.com/singerdmx/flutter-quill/issues/
Expand Down
16 changes: 10 additions & 6 deletions flutter_quill_test/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@

All notable changes to this project will be documented in this file.

## 11.0.0-dev.0

* See the [migration guide](https://github.com/singerdmx/flutter-quill/blob/release/v11/doc/migration/10_to_11.md) to migrate from `10.0.0` to `11.0.0`

## 10.8.5

* fix: allow all correct URLs to be formatted by @orevial in https://github.com/singerdmx/flutter-quill/pull/2328
* fix(macos): Implement actions for ExpandSelectionToDocumentBoundaryIntent and ExpandSelectionToLineBreakIntent to use keyboard shortcuts, unrelated cleanup to the bug fix. by @EchoEllet in https://github.com/singerdmx/flutter-quill/pull/2279

## New Contributors
* @orevial made their first contribution at https://github.com/singerdmx/flutter-quill/pull/2328

* fix: allow all correct URLs to be formatted by @orevial in https://github.com/singerdmx/flutter-quill/pull/2328
* fix(macos): Implement actions for ExpandSelectionToDocumentBoundaryIntent and ExpandSelectionToLineBreakIntent to use keyboard shortcuts, unrelated cleanup to the bug fix. by @EchoEllet in https://github.com/singerdmx/flutter-quill/pull/2279

## New Contributors
* @orevial made their first contribution at https://github.com/singerdmx/flutter-quill/pull/2328

**Full Changelog**: https://github.com/singerdmx/flutter-quill/compare/v10.8.4...v10.8.5

## 10.8.4
Expand Down
2 changes: 1 addition & 1 deletion flutter_quill_test/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_quill_test
description: Test utilities for flutter_quill which includes methods to simplify interacting with the editor in test cases.
version: 10.8.5
version: 11.0.0-dev.0
homepage: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_test/
repository: https://github.com/singerdmx/flutter-quill/tree/master/flutter_quill_test/
issue_tracker: https://github.com/singerdmx/flutter-quill/issues/
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_quill
description: "A rich text editor built for Android, iOS, Web, and desktop platforms. It's the WYSIWYG editor and a Quill component for Flutter."
version: 10.8.5
version: 11.0.0-dev.0
homepage: https://github.com/singerdmx/flutter-quill/
repository: https://github.com/singerdmx/flutter-quill/
issue_tracker: https://github.com/singerdmx/flutter-quill/issues/
Expand Down

0 comments on commit fab53e5

Please sign in to comment.