diff --git a/.github/workflows/release-manual-docs.yml b/.github/workflows/release-manual-docs.yml index 76a315b4..e97da208 100644 --- a/.github/workflows/release-manual-docs.yml +++ b/.github/workflows/release-manual-docs.yml @@ -5,6 +5,9 @@ on: tag: default: '' description: 'Version tag:' +env: + NODE_VERSION: 16.17.1 + PHP_VERSION: 8.1 jobs: docs-publish: if: github.event.inputs.tag != '' @@ -17,19 +20,16 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 16 - - name: Cache Node.js modules - uses: actions/cache@v3 + node-version: ${{ env.NODE_VERSION }} + - name: Setup PHP + uses: shivammathur/setup-php@v2 with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + php-version: ${{ env.PHP_VERSION }} - name: Generate Docs run: | - npm ci + composer install npm run document-check - npm run documentation + npm run document env: SOURCE_TAG: ${{ github.event.inputs.tag }} - name: Deploy