-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.16 KB
/
reusable-api-extractor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: API Extractor
on:
workflow_call:
env:
# 👇 Keep in sync with build workflow
TSC_ARTIFACT_NAME_SUFFIX: -tsc
# 👇 Keep in sync with docs workflow
API_DOCS_ARTIFACT_NAME_SUFFIX: -api-docs
jobs:
api-extractor:
name: API Extractor
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Download tsc output files
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
name: ngx-meta${{ env.TSC_ARTIFACT_NAME_SUFFIX }}
path: projects/ngx-meta/out
- name: Setup
uses: ./.github/actions/setup
- name: Run API Extractor in production mode
run: pnpm run ngx-meta:api-extractor
- name: Run API Documenter
run: pnpm run ngx-meta:api-documenter
- name: Upload API Documenter generated Markdown docs
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
with:
name: ngx-meta${{ env.API_DOCS_ARTIFACT_NAME_SUFFIX }}
path: projects/ngx-meta/docs/content/api
retention-days: 5