From ba54835be4bf458539e0468dcb01e07910056551 Mon Sep 17 00:00:00 2001 From: Luke Walton Date: Tue, 20 Aug 2024 14:45:12 +0100 Subject: [PATCH] fix: Fix release version in flutter (#24) ci: Update release-please config to match other repos --- .release-please/release-please-config.json | 64 +++++++++++++++++++++- outputs/flutter/icons.g.dart | 8 ++- scripts/templates/icons.dart.template | 8 ++- 3 files changed, 71 insertions(+), 9 deletions(-) diff --git a/.release-please/release-please-config.json b/.release-please/release-please-config.json index 60642489..888e1c88 100644 --- a/.release-please/release-please-config.json +++ b/.release-please/release-please-config.json @@ -3,6 +3,64 @@ ".": { "release-type": "node" } - - } -} + }, + "extra-files": [ + "outputs/flutter/icons.g.dart", + "scripts/templates/icons.dart.template" + ], + "changelog-sections": [ + { + "type": "feat", + "section": "โœจ New Features" + }, + { + "type": "fix", + "section": "๐Ÿชฒ Bug Fixes" + }, + { + "type": "revert", + "section": "๐Ÿ‘€ Reverts" + }, + { + "type": "docs", + "section": "๐Ÿ“ˆ Documentation" + }, + { + "type": "deps", + "section": "โ›“๏ธ Dependencies" + }, + { + "type": "test", + "section": "๐Ÿงช Tests" + }, + { + "type": "chore", + "section": "๐Ÿงน Miscellaneous Chores" + }, + { + "type": "perf", + "section": "Performance Improvements", + "hidden": true + }, + { + "type": "refactor", + "section": "Code Refactoring", + "hidden": true + }, + { + "type": "style", + "section": "Styles", + "hidden": true + }, + { + "type": "build", + "section": "Build System", + "hidden": true + }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": true + } + ] +} \ No newline at end of file diff --git a/outputs/flutter/icons.g.dart b/outputs/flutter/icons.g.dart index cee78da5..e906e0c2 100644 --- a/outputs/flutter/icons.g.dart +++ b/outputs/flutter/icons.g.dart @@ -1,11 +1,13 @@ -// ignore_for_file: public_member_api_docs, constant_identifier_names +// ignore_for_file: constant_identifier_names import 'package:flutter/material.dart'; // This file is automatically generated by the zeta-icons repository // DO NOT MODIFY /// Current version of Zeta Icons -const zetaIconsVersion = 'VERSION_NUM'; +// x-release-please-start-version +const zetaIconsVersion = '0.5.5'; +// x-release-please-end /// Zeta Icons. Full list of icons can be found at [Zeta Icons](https://zeta-icons.web.app/). /// {@category Assets} @@ -3251,7 +3253,7 @@ abstract class ZetaIcons { static const IconData zoom_out_sharp = IconData(0xe219, fontFamily: familySharp, fontPackage: package); } - // List of all icons. + /// List of all icons. const Map icons = { 'activity': ZetaIcons.activity, 'add_alert': ZetaIcons.add_alert, diff --git a/scripts/templates/icons.dart.template b/scripts/templates/icons.dart.template index 84b0ff9b..51298462 100644 --- a/scripts/templates/icons.dart.template +++ b/scripts/templates/icons.dart.template @@ -1,11 +1,13 @@ -// ignore_for_file: public_member_api_docs, constant_identifier_names +// ignore_for_file: constant_identifier_names import 'package:flutter/material.dart'; // This file is automatically generated by the zeta-icons repository // DO NOT MODIFY /// Current version of Zeta Icons -const zetaIconsVersion = 'VERSION_NUM'; +// x-release-please-start-version +const zetaIconsVersion = '0.5.5'; +// x-release-please-end /// Zeta Icons. Full list of icons can be found at [Zeta Icons](https://zeta-icons.web.app/). /// {@category Assets} @@ -32,7 +34,7 @@ abstract class ZetaIcons { {{sharpIcons}} } - // List of all icons. + /// List of all icons. const Map icons = { {{iconNames}} };