diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 94cc4fe..114de51 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,14 @@ jobs: - name: Publish to NuGet run: | - dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate - dotnet nuget push **/*.snupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate + dotnet nuget push src/ShellUI.CLI/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate + if ls src/ShellUI.CLI/bin/Release/*.snupkg 1> /dev/null 2>&1; then + dotnet nuget push src/ShellUI.CLI/bin/Release/*.snupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate + fi + dotnet nuget push src/ShellUI.Components/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate + if ls src/ShellUI.Components/bin/Release/*.snupkg 1> /dev/null 2>&1; then + dotnet nuget push src/ShellUI.Components/bin/Release/*.snupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate + fi - name: Extract version from tag id: version @@ -53,6 +59,5 @@ jobs: files: | src/ShellUI.CLI/bin/Release/*.nupkg src/ShellUI.Components/bin/Release/*.nupkg - src/ShellUI.Core/bin/Release/*.nupkg env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Directory.Build.props b/Directory.Build.props index 91b786e..ff54005 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ - 0.1.0 + 0.1.1 diff --git a/README.md b/README.md index 29df0d5..e5440fe 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ To update ShellUI version across all components: ``` This single file change updates: -- ✅ All NuGet packages (`ShellUI.CLI`, `ShellUI.Components`, `ShellUI.Core`) +- ✅ All NuGet packages (`ShellUI.CLI`, `ShellUI.Components`) - ✅ All component templates (73 components) - ✅ Build configurations and metadata diff --git a/docs/RELEASE_NOTES.md b/docs/RELEASE_NOTES.md index c108059..d9a9021 100644 --- a/docs/RELEASE_NOTES.md +++ b/docs/RELEASE_NOTES.md @@ -1,36 +1,26 @@ -# ShellUI v0.1.0 🎉 +# ShellUI v0.1.1 🔧 -> Beautiful, accessible Blazor components inspired by shadcn/ui +> Hotfix release - Package publishing fix -## ✨ Highlights +## 🐛 Bug Fixes -This is the **first official release** of ShellUI - a CLI-first Blazor component library that brings the shadcn/ui philosophy to .NET developers. +### Fixed Package Publishing +- **Prevented `ShellUI.Core` from being published separately** - Set `IsPackable=false` on `ShellUI.Core` project +- **Updated release workflow** - Now only publishes the 2 intended packages: + - ✅ `ShellUI.CLI` - CLI tool for component management + - ✅ `ShellUI.Components` - Component library package +- **Updated documentation** - README now correctly reflects that only 2 packages are published -### 🚀 What's Included - -#### CLI Tool (`ShellUI.CLI`) -- **`shellui init`** - Initialize your Blazor project with Tailwind CSS -- **`shellui add `** - Add individual components to your project -- **`shellui list`** - List all available components -- **`shellui remove `** - Remove installed components -- **`shellui update`** - Update components to the latest version - -#### Components Library (`ShellUI.Components`) -Pre-built components for NuGet installation: -- **Button** - Interactive button with variants (default, destructive, outline, secondary, ghost, link) -- **Badge** - Status indicators with multiple variants -- **Alert** - Notification banners with icons -- **Card** - Content containers with header, content, and footer sections -- **Input** - Form input fields -- **Label** - Accessible form labels -- **Separator** - Visual dividers -- **Shell utilities** - `Shell.Cn()` for Tailwind class merging +### What Changed +- `ShellUI.Core` is an internal dependency of `ShellUI.Components` and should not be published as a standalone package +- Future releases will only publish the 2 intended packages ## 📦 Installation -### Option 1: CLI (Recommended) +No changes to installation process: + ```bash -# Install the CLI globally +# Install CLI globally dotnet tool install -g ShellUI.CLI # Initialize your project @@ -40,33 +30,17 @@ shellui init shellui add button badge alert card ``` -### Option 2: NuGet Package +Or via NuGet: ```bash dotnet add package ShellUI.Components ``` -## 🎨 Styling - -ShellUI uses **Tailwind CSS v4** with CSS variables for theming. The `shellui init` command automatically sets up: -- Tailwind CSS standalone CLI (no Node.js required) -- CSS variables for light/dark themes -- Component styling aligned with shadcn/ui - -## 📋 Requirements - -- .NET 9.0 or later -- Blazor Server, WebAssembly, or Interactive modes - ## 🔗 Links - **Documentation**: https://shellui.dev - **GitHub**: https://github.com/shellui-dev/shellui - **NuGet**: https://www.nuget.org/packages/ShellUI.Components -## 🙏 Acknowledgments - -Inspired by [shadcn/ui](https://ui.shadcn.com/) - the beautiful React component library. - --- -**Full Changelog**: https://github.com/shellui-dev/shellui/commits/v0.1.0 +**Full Changelog**: https://github.com/shellui-dev/shellui/compare/v0.1.0...v0.1.1 diff --git a/src/ShellUI.Core/ShellUI.Core.csproj b/src/ShellUI.Core/ShellUI.Core.csproj index d185d0a..6e79228 100644 --- a/src/ShellUI.Core/ShellUI.Core.csproj +++ b/src/ShellUI.Core/ShellUI.Core.csproj @@ -16,9 +16,7 @@ git MIT blazor;components;ui;shellui;core - true - true - snupkg + false