File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,3 +157,40 @@ jobs:
157157 run : npm publish --workspace internal/events
158158 env :
159159 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
160+
161+
162+ # publish-api-specs:
163+ name : Generate and publish API specs to APIM pre-release artefacts
164+ needs :
165+ - publish-event-schemas
166+ runs-on : ubuntu-latest
167+ permissions :
168+ contents : read
169+ packages : write
170+ strategy :
171+ matrix :
172+ apim-env : [internal-dev, int, ref, prod]
173+ steps :
174+ - name : Checkout code
175+ uses : actions/checkout@v5.0.0
176+
177+ - name : Set up Node.js
178+ uses : actions/setup-node@v4
179+ with :
180+ node-version : 22
181+
182+ - name : Install dependencies
183+ working-directory : .
184+ run : npm ci
185+ shell : bash
186+
187+ - name : Generate OpenAPI specification
188+ run : |
189+ echo "Building env specific OAS spec"
190+ make build-json-oas-spec APIM_ENV=${{ matrix.APIM_ENV }}
191+
192+ - name : Upload API spec artefact
193+ uses : actions/upload-artifact@v4
194+ with :
195+ name : ${{ matrix.APIM_ENV }}-build-output
196+ path : ./build
You can’t perform that action at this time.
0 commit comments