Skip to content

Commit 796aeaa

Browse files
danielwiehlMarcarrian
authored andcommitted
ci(platform): provide manual deployment of TypeDoc
1 parent 85f7bf1 commit 796aeaa

File tree

6 files changed

+73
-20
lines changed

6 files changed

+73
-20
lines changed

.github/workflows/manual-workflow.publish-documentation.yml renamed to .github/workflows/manual-workflow.publish-developer-guide.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Documentation Publication
1+
name: Publish Developer Guide
22
on: workflow_dispatch
33
env:
44
NODE_VERSION: 20.14.0
@@ -19,8 +19,8 @@ jobs:
1919
key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
2020
- if: steps.node-modules-cache.outputs.cache-hit != 'true'
2121
run: npm ci
22-
publish-documentation:
23-
name: 'Publishing Documentation'
22+
publish-developer-guide:
23+
name: 'Publishing Developer Guide'
2424
needs: install
2525
runs-on: ubuntu-latest
2626
steps:
@@ -35,19 +35,19 @@ jobs:
3535
key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
3636
- name: 'Reading package.json version of scion/microfrontend-platform'
3737
uses: SchweizerischeBundesbahnen/scion-toolkit/.github/actions/package-json@master
38-
id: package-json
38+
id: microfrontend-platform-package-json
3939
with:
4040
path: projects/scion/microfrontend-platform/package.json
41-
- name: 'Building Reference Documentation (Developer Guide)'
42-
run: npm run microfrontend-platform:adoc -- -a revnumber=${{ steps.package-json.outputs.version }} -a revnumber-dasherized=${{ steps.package-json.outputs.version-dasherized }}
43-
- name: 'Deploying Reference Documentation (Developer Guide) to Vercel'
41+
- name: 'Building Developer Guide'
42+
run: npm run microfrontend-platform:adoc -- -a revnumber=${{ steps.microfrontend-platform-package-json.outputs.version }} -a revnumber-dasherized=${{ steps.microfrontend-platform-package-json.outputs.version-dasherized }}
43+
- name: 'Publishing Developer Guide to Vercel'
4444
uses: SchweizerischeBundesbahnen/scion-toolkit/.github/actions/vercel-deploy@master
4545
with:
4646
dist-folder: dist/microfrontend-platform-developer-guide
4747
vercel-token: ${{ secrets.VERCEL_TOKEN }}
4848
org-id: ${{ secrets.VERCEL_ORG_ID }}
4949
project-id: ${{ secrets.VERCEL_MICROFRONTEND_PLATFORM_DEVELOPER_GUIDE_PROJECT_ID }}
50-
version: ${{ steps.package-json.outputs.version }}
50+
version: ${{ steps.microfrontend-platform-package-json.outputs.version }}
5151
aliases: |
5252
microfrontend-platform-developer-guide.scion.vercel.app,
5353
microfrontend-platform-developer-guide-v%v.scion.vercel.app
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Publish TypeDoc
2+
on: workflow_dispatch
3+
env:
4+
NODE_VERSION: 20.14.0
5+
jobs:
6+
install:
7+
name: 'Installing NPM modules'
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: ${{ env.NODE_VERSION }}
14+
- name: 'Caching NPM modules if necessary'
15+
uses: actions/cache@v4
16+
id: node-modules-cache
17+
with:
18+
path: ./node_modules
19+
key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
20+
- if: steps.node-modules-cache.outputs.cache-hit != 'true'
21+
run: npm ci
22+
publish-typedoc:
23+
name: 'Publishing TypeDoc'
24+
needs: install
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: actions/setup-node@v4
29+
with:
30+
node-version: ${{ env.NODE_VERSION }}
31+
- name: 'Restoring NPM modules from cache'
32+
uses: actions/cache@v4
33+
with:
34+
path: ./node_modules
35+
key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
36+
- name: 'Reading package.json version of scion/microfrontend-platform'
37+
uses: SchweizerischeBundesbahnen/scion-toolkit/.github/actions/package-json@master
38+
id: microfrontend-platform-package-json
39+
with:
40+
path: projects/scion/microfrontend-platform/package.json
41+
- name: 'Building TypeDoc'
42+
run: npm run microfrontend-platform:typedoc
43+
- name: 'Publishing TypeDoc to Vercel'
44+
uses: SchweizerischeBundesbahnen/scion-toolkit/.github/actions/vercel-deploy@master
45+
with:
46+
dist-folder: dist/microfrontend-platform-api
47+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
48+
org-id: ${{ secrets.VERCEL_ORG_ID }}
49+
project-id: ${{ secrets.VERCEL_MICROFRONTEND_PLATFORM_API_PROJECT_ID }}
50+
version: ${{ steps.microfrontend-platform-package-json.outputs.version }}
51+
aliases: |
52+
microfrontend-platform-api.scion.vercel.app,
53+
microfrontend-platform-api-v%v.scion.vercel.app

.github/workflows/workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ jobs:
6969
key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
7070
- name: 'Building @scion/microfrontend-platform'
7171
run: npm run microfrontend-platform:build
72-
- name: 'Building API Documentation (TypeDoc)'
72+
- name: 'Building TypeDoc'
7373
run: npm run microfrontend-platform:typedoc
74-
- name: 'Building Reference Documentation (Developer Guide)'
74+
- name: 'Building Developer Guide'
7575
run: npm run microfrontend-platform:adoc -- -a revnumber=${{ steps.root-package-json.outputs.version }} -a revnumber-dasherized=${{ steps.root-package-json.outputs.version-dasherized }}
7676
- uses: actions/upload-artifact@v4
7777
with:
@@ -238,7 +238,7 @@ jobs:
238238
aliases: |
239239
microfrontend-platform-devtools.scion.vercel.app,
240240
microfrontend-platform-devtools-v%v.scion.vercel.app
241-
- name: 'Publishing API Documentation (TypeDoc) to Vercel'
241+
- name: 'Publishing TypeDoc to Vercel'
242242
uses: SchweizerischeBundesbahnen/scion-toolkit/.github/actions/vercel-deploy@master
243243
with:
244244
dist-folder: dist/microfrontend-platform-api
@@ -249,7 +249,7 @@ jobs:
249249
aliases: |
250250
microfrontend-platform-api.scion.vercel.app,
251251
microfrontend-platform-api-v%v.scion.vercel.app
252-
- name: 'Publishing Reference Documentation (Developer Guide) to Vercel'
252+
- name: 'Publishing Developer Guide to Vercel'
253253
uses: SchweizerischeBundesbahnen/scion-toolkit/.github/actions/vercel-deploy@master
254254
with:
255255
dist-folder: dist/microfrontend-platform-developer-guide

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ The following is a summary of commands useful for development of `scion-microfro
8282
### Commands for generating the project documentation
8383

8484
- `npm run microfrontend-platform:adoc`\
85-
Use to build the reference documentation (Developer Guide), i.e., creates a HTML file from the AsciiDoc source files. The output is written to `dist/microfrontend-platform-developer-guide`.
85+
Use to build the Developer Guide, i.e., creates a HTML file from the AsciiDoc source files. The output is written to `dist/microfrontend-platform-developer-guide`.
8686

8787
- `npm run microfrontend-platform:typedoc`\
88-
Use to generate the API documentation (TypeDoc) for the SCION Microfrontend Platform library. The output is written to `dist/microfrontend-platform-api`.
88+
Use to generate the TypeDoc for the SCION Microfrontend Platform library. The output is written to `dist/microfrontend-platform-api`.
8989

9090
- `npm run changelog`\
9191
Use to generate the changelog based on the commit history. The output is written to `CHANGELOG.md`, which will be included in `docs/site/changelog/changelog.md` using the template `docs/site/changelog/changelog.template.md`.
@@ -288,10 +288,10 @@ This chapter describes the tasks to publish a new release to NPM.
288288
- Deploys DevTools to Vercel:
289289
- https://microfrontend-platform-devtools.scion.vercel.app.
290290
- https://microfrontend-platform-devtools-vX-X-X.scion.vercel.app.
291-
- Publishes API Documentation (TypeDoc) to Vercel:
291+
- Publishes TypeDoc to Vercel:
292292
- https://microfrontend-platform-api.scion.vercel.app.
293293
- https://microfrontend-platform-api-vX-X-X.scion.vercel.app.
294-
- Publishes Reference Documentation (Developer Guide) to Vercel:
294+
- Publishes Developer Guide to Vercel:
295295
- https://microfrontend-platform-developer-guide.scion.vercel.app.
296296
- https://microfrontend-platform-developer-guide-vX-X-X.scion.vercel.app.
297297
1. Migrate the [Getting Started Guide][link-getting-started-guide-repo] Git Repo if necessary.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ SCION Microfrontend Platform enables you to successfully implement a framework-a
2626

2727
#### Documentation
2828

29-
- [**Reference Documentation**][link-developer-guide]\
29+
- [**Developer Guide**][link-developer-guide]\
3030
Read our Developer Guide to learn more about the core concepts and configuration of the platform.
3131

32-
- [**API Documentation**][link-reference-documentation]\
33-
Consult our Public API documentation for a complete overview of the API.
32+
- [**TypeDoc**][link-reference-documentation]\
33+
Consult our API documentation for a complete overview of the API.
3434

3535
#### Miscellaneous
3636

apps/microfrontend-platform-devtools/src/app/app-menu/app-menu.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
<ul>
2828
<li><a href="https://microfrontend-platform-developer-guide.scion.vercel.app/" target="_blank" rel="noopener noreferrer">Developer Guide</a></li>
29-
<li><a href="https://microfrontend-platform-api.scion.vercel.app/" target="_blank" rel="noopener noreferrer">API Documentation</a></li>
29+
<li><a href="https://microfrontend-platform-api.scion.vercel.app/" target="_blank" rel="noopener noreferrer">TypeDoc</a></li>
3030
<li><a href="https://github.com/SchweizerischeBundesbahnen/scion-microfrontend-platform/issues" target="_blank" rel="noopener noreferrer">Report an Issue</a></li>
3131
<li><a href="https://github.com/SchweizerischeBundesbahnen/scion-microfrontend-platform/blob/master/docs/site/getting-started/getting-started.md" target="_blank" rel="noopener noreferrer">Getting Started</a></li>
3232
<li><a href="https://github.com/SchweizerischeBundesbahnen/scion-microfrontend-platform" target="_blank" rel="noopener noreferrer">Visit us on GitHub</a></li>

0 commit comments

Comments
 (0)