From d72b2c427991d6f2957fd8a81b32160bd1a10d99 Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Wed, 26 Apr 2023 20:23:22 -0700 Subject: [PATCH 1/2] ci: Fix manual documentation release --- .github/workflows/release-manual-docs.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-manual-docs.yml b/.github/workflows/release-manual-docs.yml index 76a315b4..1fea7fba 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,23 @@ jobs: - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: ${{ env.NODE_VERSION }} + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ env.PHP_VERSION }} - name: Cache Node.js modules uses: actions/cache@v3 with: path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} restore-keys: | - ${{ runner.os }}-node- + ${{ runner.os }}-node-${{ env.NODE_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 From d7007d501763827b0a50c1897585410b196085dd Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Wed, 26 Apr 2023 20:24:40 -0700 Subject: [PATCH 2/2] remove unused cache --- .github/workflows/release-manual-docs.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/release-manual-docs.yml b/.github/workflows/release-manual-docs.yml index 1fea7fba..e97da208 100644 --- a/.github/workflows/release-manual-docs.yml +++ b/.github/workflows/release-manual-docs.yml @@ -25,13 +25,6 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ env.PHP_VERSION }} - - name: Cache Node.js modules - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node-${{ env.NODE_VERSION }}- - name: Generate Docs run: | composer install