Skip to content

Commit b6a6371

Browse files
authored
Merge branch 'master' into adding-loginas-with-tests
2 parents ffc724c + dfe2957 commit b6a6371

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.github/workflows/release-automated.yml

+13-12
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: release-automated
22
on:
33
push:
44
branches: [ master, release, alpha, beta ]
5+
env:
6+
NODE_VERSION: 18
7+
PHP_VERSION: 8.1
58
jobs:
69
release:
710
runs-on: ubuntu-latest
@@ -13,7 +16,7 @@ jobs:
1316
persist-credentials: false
1417
- uses: actions/setup-node@v3
1518
with:
16-
node-version: 18
19+
node-version: ${{ env.NODE_VERSION }}
1720
- run: npm ci
1821
- run: npx semantic-release
1922
env:
@@ -22,32 +25,30 @@ jobs:
2225
- name: Determine tag on current commit
2326
id: tag
2427
run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')"
25-
publish-docs:
28+
docs-publish:
2629
needs: release
2730
if: needs.release.outputs.current_tag != ''
2831
runs-on: ubuntu-latest
32+
timeout-minutes: 15
2933
steps:
3034
- uses: actions/checkout@v3
3135
with:
3236
ref: ${{ needs.release.outputs.current_tag }}
3337
- name: Use Node.js
3438
uses: actions/setup-node@v3
3539
with:
36-
node-version: 16
37-
- name: Cache Node.js modules
38-
uses: actions/cache@v3
40+
node-version: ${{ env.NODE_VERSION }}
41+
- name: Setup PHP
42+
uses: shivammathur/setup-php@v2
3943
with:
40-
path: ~/.npm
41-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
42-
restore-keys: |
43-
${{ runner.os }}-node-
44+
php-version: ${{ env.PHP_VERSION }}
4445
- name: Generate Docs
4546
run: |
46-
npm ci
47+
composer install
4748
npm run document-check
48-
npm run documentation
49+
npm run document
4950
env:
50-
SOURCE_TAG: ${{ github.event.inputs.tag }}
51+
SOURCE_TAG: ${{ needs.release.outputs.current_tag }}
5152
- name: Deploy
5253
uses: peaceiris/[email protected]
5354
with:

.github/workflows/release-manual-docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ on:
66
default: ''
77
description: 'Version tag:'
88
env:
9-
NODE_VERSION: 16.17.1
9+
NODE_VERSION: 18
1010
PHP_VERSION: 8.1
1111
jobs:
1212
docs-publish:
1313
if: github.event.inputs.tag != ''
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
timeout-minutes: 15
1616
steps:
1717
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)