From 89f99b0aa099f7d36ad7db9dbae017b8893870ca 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 +++++++++++++++++++++- index.css | 4 +- outputs/flutter/icons.g.dart | 8 ++- package.json | 6 +- scripts/templates/icons.dart.template | 8 ++- 5 files changed, 76 insertions(+), 14 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/index.css b/index.css index 98c9d942..54e7c29a 100644 --- a/index.css +++ b/index.css @@ -1,9 +1,9 @@ @font-face { font-family: "zeta-icons-round"; - src: url("./outputs/font/zeta-icons-round.woff2") format("woff2"); + src: url("./outputs/web/zeta-icons-round.woff2") format("woff2"); } @font-face { font-family: "zeta-icons-sharp"; - src: url("./outputs/font/zeta-icons-sharp.woff2") format("woff2"); + src: url("./outputs/web/zeta-icons-sharp.woff2") format("woff2"); } 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/package.json b/package.json index a80c8c09..b022a815 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "dist/index.*s", "dist/outputs", "outputs/definitions", - "outputs/font", + "outputs/web", "outputs/icons", "outputs/icon-manifest.json", "CHANGELOG.md" @@ -18,7 +18,7 @@ ".": "./dist/index.js", "./icon-manifest.json": "./outputs/icon-manifest.json", "./icons/*": "./outputs/icons/*", - "./font/*": "./outputs/font/*", + "./font/*": "./outputs/web/*", "./index.css": "./index.css" }, "devDependencies": { @@ -69,4 +69,4 @@ "url": "https://github.com/zebratechnologies/zeta-icons/issues" }, "homepage": "https://github.com/zebratechnologies/zeta-icons#readme" -} +} \ No newline at end of file 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}} };