Skip to content

Commit 6099bc0

Browse files
Fix Missing JS Dependencies (#3)
* Update main.yml * Update main.yml
1 parent 4e1f636 commit 6099bc0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ on:
44
push:
55
branches:
66
- release/*
7-
- refs/tags/*
87
workflow_dispatch:
8+
release:
9+
types:
10+
- published
911

1012
jobs:
1113
publish:
@@ -25,5 +27,10 @@ jobs:
2527
with:
2628
dotnet-version: "5.0"
2729

30+
- run: dotnet tool install -g Microsoft.Web.LibraryManager.Cli
31+
- run: |
32+
cd src/MermaidJS.Blazor
33+
libman restore
34+
cd ../..
2835
- run: dotnet pack ./src/MermaidJS.Blazor/MermaidJS.Blazor.csproj -c Release -o ./dist -p:PackageVersion=${{steps.version.outputs.semver}}
2936
- run: dotnet nuget push ./dist/*.nupkg -s 'https://api.nuget.org/v3/index.json' -k '${{secrets.NUGET_API_KEY}}'

0 commit comments

Comments
 (0)