@team-supercharge/oasg 13.2.0-feature-csharp-functions-win-db125630.0 → 13.2.0-feature-csharp-functions-win-cafaaecb.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-supercharge/oasg",
3
- "version": "13.2.0-feature-csharp-functions-win-db125630.0",
3
+ "version": "13.2.0-feature-csharp-functions-win-cafaaecb.0",
4
4
  "description": "Node-based tool to lint OpenAPI documents and generate clients, servers and documentation from them",
5
5
  "author": "Supercharge",
6
6
  "license": "MIT",
@@ -7,15 +7,17 @@ cd out/$targetId
7
7
  # pack
8
8
  dotnet restore
9
9
  dotnet build -c Release
10
- dotnet pack -c Release /p:Version=$version /p:IsPackable=true
10
+ dotnet pack -c Release -p:Version=$version -p:IsPackable=true
11
11
 
12
- # push
12
+ isWindows=false
13
13
  if [[ "$OSTYPE" == "cygwin"* ]] || [[ "$OSTYPE" == "msys"* ]]; then
14
- dotnet nuget push "src/**/bin/Release/*.nupkg" --api-key ${apiKey} --source ${sourceUrl}
15
- else
16
- echo "<?xml version=\"1.0\" encoding=\"utf-8\"?><configuration></configuration>" > nuget.config
17
- dotnet nuget add source ${sourceUrl} -n Feed -u User -p ${apiKey} --configfile nuget.config --store-password-in-clear-text
18
- dotnet nuget push "src/**/bin/Release/*.nupkg" -s ${sourceUrl} -k AZ
14
+ isWindows=true
19
15
  fi
16
+ storePasswordOption=$([[ $isWindows == true ]] && echo "" || echo "--store-password-in-clear-text")
17
+
18
+ # publish
19
+ echo "<?xml version=\"1.0\" encoding=\"utf-8\"?><configuration></configuration>" > nuget.config
20
+ dotnet nuget add source "${sourceUrl}" -n Feed -u User -p "${apiKey}" --configfile nuget.config $storePasswordOption
21
+ dotnet nuget push "src/**/bin/Release/*.nupkg" -s ${sourceUrl} -k AZ
20
22
 
21
23
  cd ../..