Skip to content

Commit 1b7fdfd

Browse files
committed
Generate & publish Angular client SDK on release
Closes #6
1 parent cd2a85b commit 1b7fdfd

File tree

9 files changed

+1904
-0
lines changed

9 files changed

+1904
-0
lines changed

.github/workflows/release.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SPDX-FileCopyrightText: © 2026 Logan Magee
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: Release
6+
7+
on:
8+
push:
9+
tags:
10+
- 'v*.*.*'
11+
12+
permissions:
13+
contents: read
14+
id-token: write
15+
16+
jobs:
17+
publish-sdks:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v6
21+
- uses: bufbuild/buf-action@v1
22+
with:
23+
setup_only: true
24+
- run: buf generate --template buf.gen.openapi.yaml
25+
- uses: actions/setup-node@v6
26+
with:
27+
node-version: '24'
28+
check-latest: true
29+
- uses: actions/setup-java@v5
30+
with:
31+
distribution: temurin
32+
java-version: '25'
33+
check-latest: true
34+
- run: npm ci
35+
- run: npm run gen:sdks
36+
- run: npm install
37+
working-directory: generated_sdks/angular
38+
- run: npm publish --access public
39+
working-directory: generated_sdks/angular/dist

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
/gen
6+
/generated_sdks
7+
/node_modules

buf.gen.openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-FileCopyrightText: © 2026 Logan Magee
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
version: v2
6+
clean: true
7+
plugins:
8+
- remote: buf.build/grpc-ecosystem/openapiv2
9+
out: gen/openapi
10+
opt:
11+
- allow_merge=true
12+
- merge_file_name=openapi

openapitools.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3+
"spaces": 2,
4+
"generator-cli": {
5+
"version": "7.20.0",
6+
"generators": {
7+
"angular": {
8+
"additionalProperties": {
9+
"disallowAdditionalPropertiesIfNotPresent": false,
10+
"enumUnknownDefaultCase": true,
11+
"licenseName": "Apache-2.0",
12+
"ngVersion": "20.0.0",
13+
"npmName": "@accrescent/console-client-sdk-angular",
14+
"npmVersion": "0.0.0",
15+
"supportsES6": true
16+
},
17+
"generatorName": "typescript-angular",
18+
"gitRepoId": "console-api",
19+
"gitUserId": "accrescent",
20+
"inputSpec": "./gen/openapi/openapi.swagger.json",
21+
"output": "./generated_sdks/angular"
22+
}
23+
}
24+
}
25+
}

openapitools.json.license

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: © 2026 Logan Magee
2+
3+
SPDX-License-Identifier: Apache-2.0

0 commit comments

Comments
 (0)