From 817298b1761bd361a6d7e5e0ddff25e2f140ea19 Mon Sep 17 00:00:00 2001 From: arunshenoy99 Date: Fri, 5 Jan 2024 13:34:33 +0530 Subject: [PATCH] Install node dependencies for the plugin earlier --- .github/workflows/module-plugin-test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/module-plugin-test.yml b/.github/workflows/module-plugin-test.yml index 7b7184d..aaae6c8 100644 --- a/.github/workflows/module-plugin-test.yml +++ b/.github/workflows/module-plugin-test.yml @@ -111,6 +111,12 @@ jobs: - name: Install PHP Dependencies for Plugin run: composer install --no-progress --no-dev --optimize-autoloader --prefer-dist + - name: Setup Registry for Plugin + run: printf "\n//npm.pkg.github.com/:_authToken=${{ secrets.NEWFOLD_ACCESS_TOKEN }}" >> .npmrc + + - name: NPM Install for Plugin + run: npm ci --legacy-peer-deps + - name: Get Module Source run: | composer reinstall ${{ inputs.module-repo }} --prefer-source @@ -169,12 +175,6 @@ jobs: if: ${{ steps.build.outputs.hasBuildCommand != 'false' }} run: npm run build - - name: Setup Registry for Plugin - run: printf "\n//npm.pkg.github.com/:_authToken=${{ secrets.NEWFOLD_ACCESS_TOKEN }}" >> .npmrc - - - name: NPM Install for Plugin - run: npm ci --legacy-peer-deps - - name: Sync Module build files to node_modules dir if: ${{ inputs.sync-npm-package }} run: rsync -r vendor/${{ inputs.module-repo }}/build node_modules/@${{ inputs.module-repo }}/build