File tree Expand file tree Collapse file tree 2 files changed +52
-4
lines changed Expand file tree Collapse file tree 2 files changed +52
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Documentation Publication
1
+ name : Publish Developer Guide
2
2
on : workflow_dispatch
3
3
env :
4
4
NODE_VERSION : 20.14.0
20
20
- if : steps.node-modules-cache.outputs.cache-hit != 'true'
21
21
run : npm ci
22
22
publish-documentation :
23
- name : ' Publishing Documentation '
23
+ name : ' Publishing Developer Guide '
24
24
needs : install
25
25
runs-on : ubuntu-latest
26
26
steps :
38
38
id : package-json
39
39
with :
40
40
path : projects/scion/microfrontend-platform/package.json
41
- - name : ' Building Reference Documentation ( Developer Guide) '
41
+ - name : ' Building Developer Guide'
42
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'
43
+ - name : ' Publishing Developer Guide to Vercel'
44
44
uses : SchweizerischeBundesbahnen/scion-toolkit/.github/actions/vercel-deploy@master
45
45
with :
46
46
dist-folder : dist/microfrontend-platform-developer-guide
Original file line number Diff line number Diff line change
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-documentation :
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 : ' Building TypeDoc'
37
+ run : npm run microfrontend-platform:typedoc
38
+ - name : ' Publishing TypeDoc to Vercel'
39
+ uses : SchweizerischeBundesbahnen/scion-toolkit/.github/actions/vercel-deploy@master
40
+ with :
41
+ dist-folder : dist/microfrontend-platform-api
42
+ vercel-token : ${{ secrets.VERCEL_TOKEN }}
43
+ org-id : ${{ secrets.VERCEL_ORG_ID }}
44
+ project-id : ${{ secrets.VERCEL_MICROFRONTEND_PLATFORM_API_PROJECT_ID }}
45
+ version : ${{ needs.build-platform.outputs.version }}
46
+ aliases : |
47
+ microfrontend-platform-api.scion.vercel.app,
48
+ microfrontend-platform-api-v%v.scion.vercel.app
You can’t perform that action at this time.
0 commit comments