@team-supercharge/oasg 16.4.0-feature-aspdotnetcore-generator-aff0d7ac.0 → 16.4.0-feature-aspdotnetcore-generator-c0fb9acc.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/README.md +1 -1
- package/config.schema.yml +0 -1
- package/package.json +1 -1
- package/targets/dotnet-webapi/publish.sh +7 -1
package/README.md
CHANGED
@@ -1023,8 +1023,8 @@ Validations from OpenAPI spec:
|
|
1023
1023
|
| Parameter | Description | Required | Default |
|
1024
1024
|
| ------------------- | ------------------------------------------------------------------------------ | -------- | ------- |
|
1025
1025
|
| sourceUrl | Url to where the package will be published | Y | - |
|
1026
|
-
| apiKey | Api key of nuget source | Y | - |
|
1027
1026
|
| packageName | Name of the generated package | Y | - |
|
1027
|
+
| apiKey | Api key of nuget source (If not specified, provide the CI_JOB_TOKEN) | N | - |
|
1028
1028
|
| generatorCustomArgs | Custom arguments of the generator (--global-property, --additional-properties) | N | - |
|
1029
1029
|
|
1030
1030
|
#### `postman`
|
package/config.schema.yml
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@team-supercharge/oasg",
|
3
|
-
"version": "16.4.0-feature-aspdotnetcore-generator-
|
3
|
+
"version": "16.4.0-feature-aspdotnetcore-generator-c0fb9acc.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",
|
@@ -4,12 +4,18 @@ source $(dirname "$0")/../common.sh
|
|
4
4
|
|
5
5
|
cd out/$targetId
|
6
6
|
|
7
|
+
# install dotnet
|
8
|
+
wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
|
9
|
+
chmod +x dotnet-install.sh
|
10
|
+
./dotnet-install.sh --channel 8.0 --install-dir "$HOME/.dotnet"
|
11
|
+
export PATH="$HOME/.dotnet:$PATH"
|
12
|
+
|
7
13
|
# pack
|
8
14
|
dotnet restore
|
9
15
|
dotnet build -c Release
|
10
16
|
dotnet pack -c Release -p:Version=$version -p:IsPackable=true
|
11
17
|
|
12
18
|
# publish
|
13
|
-
dotnet nuget push "src/**/bin/Release/*.nupkg" --
|
19
|
+
dotnet nuget push "src/**/bin/Release/*.nupkg" --source $sourceUrl -k ${$apiKey:-CI_JOB_TOKEN}
|
14
20
|
|
15
21
|
cd ../..
|