Skip to content

Commit

Permalink
fix: add package lock files
Browse files Browse the repository at this point in the history
  • Loading branch information
kekonn committed Mar 21, 2024
1 parent c52f238 commit 5a31735
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
steps:
- uses: actions/checkout@v4
name: Checkout
- name: Summarize
shell: pwsh
run: |
Write-Output "::debug::Package lock file location"
- uses: actions/setup-dotnet@v4
name: Setup dotnet cli
with:
Expand All @@ -53,16 +57,16 @@ jobs:
- name: Restore (locked)
shell: pwsh
run: dotnet restore --locked-mode
- name: Build and restore
- name: Build
shell: pwsh
env:
VERSION_MANIFEST: ${{ needs.plan.outputs.versionManifest }}
run: |
$versionManifest = ConvertFrom-Json -InputObject $env:VERSION_MANIFEST -AsHashTable
$versionManifest = ConvertFrom-Json -InputObject $($env:VERSION_MANIFEST | ConvertFrom-Json) -AsHashTable
foreach ($app in $versionManifest.GetEnumerator()) {
$packageVersion = $app.Value.SemVer
Write-Output "::debug::Building package " + $app.Key + " with version " + $packageVersion
& dotnet build $app.Value.Root -c Release --os ${{ matrix.os }} --no-self-contained `
& dotnet build --no-restore $app.Value.Root -c Release --os ${{ matrix.os }} --no-self-contained `
-p:PackageRequireLicenseAcceptance=true `
-p:PackageLicenseFile=LICENSE `
-p:Version=$packageVersion `
Expand Down
10 changes: 10 additions & 0 deletions src/Kek.Net.AspNet/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": 2,
"dependencies": {
"net8.0": {
"kek.net.errorhandling": {
"type": "Project"
}
}
}
}
6 changes: 6 additions & 0 deletions src/Kek.Net.ErrorHandling/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": 2,
"dependencies": {
"net8.0": {}
}
}
6 changes: 6 additions & 0 deletions src/Kek.Net.Extensions/packages.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"version": 2,
"dependencies": {
"net8.0": {}
}
}

0 comments on commit 5a31735

Please sign in to comment.