Skip to content

Commit

Permalink
fix: Fix release version in flutter (#24)
Browse files Browse the repository at this point in the history
ci: Update release-please config to match other repos
  • Loading branch information
thelukewalton committed Aug 20, 2024
1 parent 969d1d6 commit 89f99b0
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 14 deletions.
64 changes: 61 additions & 3 deletions .release-please/release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
4 changes: 2 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
@@ -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");
}
8 changes: 5 additions & 3 deletions outputs/flutter/icons.g.dart
Original file line number Diff line number Diff line change
@@ -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}
Expand Down Expand Up @@ -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<String, IconData> icons = {
'activity': ZetaIcons.activity,
'add_alert': ZetaIcons.add_alert,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dist/index.*s",
"dist/outputs",
"outputs/definitions",
"outputs/font",
"outputs/web",
"outputs/icons",
"outputs/icon-manifest.json",
"CHANGELOG.md"
Expand All @@ -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": {
Expand Down Expand Up @@ -69,4 +69,4 @@
"url": "https://github.com/zebratechnologies/zeta-icons/issues"
},
"homepage": "https://github.com/zebratechnologies/zeta-icons#readme"
}
}
8 changes: 5 additions & 3 deletions scripts/templates/icons.dart.template
Original file line number Diff line number Diff line change
@@ -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}
Expand All @@ -32,7 +34,7 @@ abstract class ZetaIcons {
{{sharpIcons}}
}

// List of all icons.
/// List of all icons.
const Map<String, IconData> icons = {
{{iconNames}}
};

0 comments on commit 89f99b0

Please sign in to comment.