Skip to content

Commit f5c0c08

Browse files
committed
ci: build against the bundle this SDK generates from
1 parent 2559dcd commit f5c0c08

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

.github/workflows/build.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
pull_request:
66
workflow_call:
77
inputs:
8-
spec-artifact:
8+
artifact:
99
description: >-
10-
Artifact holding the bundled specification. Only reachable when the
11-
caller shares this run; when empty the latest published one is used.
10+
Take the bundle from this run's artifacts rather than the latest
11+
release. Only set it when the caller shares the run.
1212
required: false
13-
type: string
14-
default: ''
13+
type: boolean
14+
default: false
1515
ref:
1616
description: Ref of this repository to build.
1717
required: false
@@ -24,13 +24,12 @@ jobs:
2424
build:
2525
runs-on: ubuntu-latest
2626
steps:
27-
# This SDK generates through @hey-api/openapi-ts rather than the OpenAPI
28-
# generator, so it only needs the checkout and the specification.
29-
- uses: vrchatapi/specification/.github/actions/sdk-spec@ci/modernise-actions
27+
- uses: vrchatapi/specification/.github/actions/setup@ci/modernise-actions
3028
with:
3129
repository: vrchatapi/vrchatapi-javascript
3230
ref: ${{ inputs.ref || github.ref }}
33-
spec-artifact: ${{ inputs.spec-artifact }}
31+
bundle: openapi.json
32+
artifact: ${{ inputs.artifact }}
3433

3534
- uses: pnpm/action-setup@v6
3635
with:
@@ -39,6 +38,4 @@ jobs:
3938

4039
- run: pnpm install
4140

42-
# `prebuild` regenerates src/generated from ./openapi.json, so this both
43-
# generates against the specification and type-checks the result.
4441
- run: pnpm build

0 commit comments

Comments
 (0)