File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 5
5
tag :
6
6
default : ' '
7
7
description : ' Version tag:'
8
+ env :
9
+ NODE_VERSION : 16.17.1
10
+ PHP_VERSION : 8.1
8
11
jobs :
9
12
docs-publish :
10
13
if : github.event.inputs.tag != ''
@@ -17,19 +20,23 @@ jobs:
17
20
- name : Use Node.js
18
21
uses : actions/setup-node@v3
19
22
with :
20
- node-version : 16
23
+ node-version : ${{ env.NODE_VERSION }}
24
+ - name : Setup PHP
25
+ uses : shivammathur/setup-php@v2
26
+ with :
27
+ php-version : ${{ env.PHP_VERSION }}
21
28
- name : Cache Node.js modules
22
29
uses : actions/cache@v3
23
30
with :
24
31
path : ~/.npm
25
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
32
+ key : ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
26
33
restore-keys : |
27
- ${{ runner.os }}-node-
34
+ ${{ runner.os }}-node-${{ env.NODE_VERSION }} -
28
35
- name : Generate Docs
29
36
run : |
30
- npm ci
37
+ composer install
31
38
npm run document-check
32
- npm run documentation
39
+ npm run document
33
40
env :
34
41
SOURCE_TAG : ${{ github.event.inputs.tag }}
35
42
- name : Deploy
You can’t perform that action at this time.
0 commit comments