Skip to content
This repository was archived by the owner on Oct 26, 2022. It is now read-only.

Commit e2920cd

Browse files
fix #13 with an explicit build before pack
1 parent dbb450e commit e2920cd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Action {
4444

4545
_pushPackage() {
4646
if (!this.NUGET_KEY) {
47-
this._warn("😢 nuget_key not given")
47+
this._warn("😢 NUGET_KEY not given")
4848
return
4949
}
5050

@@ -53,7 +53,8 @@ class Action {
5353
return
5454
}
5555

56-
this._execInProc(`dotnet pack -c Release ${this.PROJECT_FILE_PATH} -o .`)
56+
this._execInProc(`dotnet build -c Release ${this.PROJECT_FILE_PATH}`)
57+
this._execInProc(`dotnet pack --no-build -c Release ${this.PROJECT_FILE_PATH} -o .`)
5758
const NUGET_PUSH_RESPONSE = this._execAndCapture(`dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${this.NUGET_KEY}`)
5859
const NUGET_ERROR_REGEX = /(error: Response status code does not indicate success.*)/
5960

0 commit comments

Comments
 (0)