Skip to content

Commit 6cd56a0

Browse files
committed
feat: enhance release workflow to include ShellUI.Core packaging
Updated the GitHub Actions release workflow to push the ShellUI.Core package to NuGet, ensuring that both ShellUI.Core and ShellUI.Components are published together. This change resolves previous issues with package restoration and improves the overall release process.
1 parent 886e42e commit 6cd56a0

2 files changed

Lines changed: 72 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ jobs:
5151
if ls src/ShellUI.CLI/bin/Release/*.snupkg 1> /dev/null 2>&1; then
5252
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
5353
fi
54+
dotnet nuget push src/ShellUI.Core/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
55+
if ls src/ShellUI.Core/bin/Release/*.snupkg 1> /dev/null 2>&1; then
56+
dotnet nuget push src/ShellUI.Core/bin/Release/*.snupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
57+
fi
5458
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
5559
if ls src/ShellUI.Components/bin/Release/*.snupkg 1> /dev/null 2>&1; then
5660
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
@@ -69,6 +73,7 @@ jobs:
6973
prerelease: ${{ contains(github.ref, '-') }}
7074
files: |
7175
src/ShellUI.CLI/bin/Release/*.nupkg
76+
src/ShellUI.Core/bin/Release/*.nupkg
7277
src/ShellUI.Components/bin/Release/*.nupkg
7378
env:
7479
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs/RELEASE_NOTES.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,70 @@
1-
# ShellUI v0.3.0-alpha.2 🚧
1+
# ShellUI v0.3.0-alpha.3 🚧
2+
3+
> Third alpha of v0.3.0 — dashboard sidebar blocks, JS install fixes, and NuGet Core packaging. Report issues via [GitHub Issues](https://github.com/shellui-dev/shellui/issues).
4+
5+
## What's in this release
6+
7+
v0.3.0-alpha.3 adds shadcn-style dashboard layout blocks, completes the sidebar component install chain (including JavaScript interop), and fixes NuGet so `ShellUI.Components` can resolve `ShellUI.Core`.
8+
9+
### ✨ New
10+
11+
- **Dashboard layout blocks**`dotnet shellui add dashboard-01` (header scrolls, shadcn sidebar-01) and `dashboard-02` (sticky header, shadcn sidebar-02)
12+
- **`shellui-js` template** — installs `wwwroot/shellui.js` at init and as a dependency of `copy-button` / `file-upload`
13+
- **Blocks demo**`/blocks` page with live previews, install commands, and `CopyButton` per block
14+
- **`DashboardDemoSidebar`** — isolated demo sidebar content (separate from main app sidebar)
15+
16+
### 🐛 Fixes
17+
18+
- **NuGet: `ShellUI.Core` now published**`ShellUI.Core` is packable; release workflow pushes Core + Components so `dotnet add package ShellUI.Components` restores successfully (was NU1102 when only Core 0.1.0 existed on NuGet)
19+
- **Dependency auto-install** — variant/service templates (`alert-variants`, `badge-variants`, `avatar-variants`, `sonner-variants`, `sonner-service`, `toggle-variants`) marked `IsAvailable = false` so they install only with their parent
20+
- **Breadcrumb** — single `dotnet shellui add breadcrumb`; `breadcrumb-item` auto-installed
21+
- **Blazor error UI** — hidden until an error occurs (`.show` class)
22+
- **Init** — installs `shellui.js` and reminds you to add `<script src="shellui.js"></script>` in App.razor or index.html
23+
24+
### 🔧 Sidebar / JS
25+
26+
| Asset | Installed when | CLI usage |
27+
|-------|----------------|-----------|
28+
| `shellui-sidebar.js` | `sidebar-provider``sidebar-js` | Dynamic import in `SidebarProvider` |
29+
| `shellui.js` | `init`, `copy-button`, `file-upload` | Global `ShellUI.*`; requires script tag in HTML |
30+
31+
NuGet consumers: both JS files ship as static web assets under `_content/ShellUI.Components/`.
32+
33+
### 📦 Installation
34+
35+
```bash
36+
# CLI
37+
dotnet tool install -g ShellUI.CLI --version 0.3.0-alpha.3
38+
# or
39+
dotnet tool update -g ShellUI.CLI --version 0.3.0-alpha.3
40+
41+
shellui init
42+
shellui add dashboard-01 # or dashboard-02
43+
```
44+
45+
```bash
46+
# NuGet (requires ShellUI.Core on NuGet at same version)
47+
dotnet add package ShellUI.Core --version 0.3.0-alpha.3 --prerelease
48+
dotnet add package ShellUI.Components --version 0.3.0-alpha.3 --prerelease
49+
```
50+
51+
After `shellui init`, add before the Blazor script:
52+
53+
```html
54+
<script src="shellui.js"></script>
55+
```
56+
57+
## 🔗 Links
58+
59+
- **Documentation**: https://shellui.dev
60+
- **GitHub**: https://github.com/shellui-dev/shellui
61+
- **NuGet**: https://www.nuget.org/packages/ShellUI.Components
62+
63+
**Full Changelog**: https://github.com/shellui-dev/shellui/compare/v0.3.0-alpha.2...v0.3.0-alpha.3
64+
65+
---
66+
67+
# ShellUI v0.3.0-alpha.2 🚧 (Historical)
268

369
> Second alpha of v0.3.0 — fixes CLI registry for Drawer/Sheet compositional subcomponents. Report issues via [GitHub Issues](https://github.com/shellui-dev/shellui/issues).
470

0 commit comments

Comments
 (0)