From 365242b0a57fa7d2b408e9abfd50b0e927407497 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 14 Dec 2023 11:28:19 -0500 Subject: [PATCH] try full path for if hashFiles check --- .github/workflows/module-plugin-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/module-plugin-test.yml b/.github/workflows/module-plugin-test.yml index f5eaf15..2eb2c15 100644 --- a/.github/workflows/module-plugin-test.yml +++ b/.github/workflows/module-plugin-test.yml @@ -124,19 +124,19 @@ jobs: - name: Setup Registry for Module working-directory: ./vendor/${{ inputs.module-repo }} - if: ${{ hashFiles('package.json') != '' }} + if: ${{ hashFiles('vendor/${{ inputs.module-repo }}/package.json') != '' }} run: printf "\n//npm.pkg.github.com/:_authToken=${{ secrets.NEWFOLD_ACCESS_TOKEN }}" >> .npmrc - name: NPM Install for Module if package.json exists working-directory: ./vendor/${{ inputs.module-repo }} - if: ${{ hashFiles('package.json') != '' }} + if: ${{ hashFiles('vendor/${{ inputs.module-repo }}/package.json') != '' }} run: npm ci --legacy-peer-deps - name: Build Module if build command exists working-directory: ./vendor/${{ inputs.module-repo }} if: | - ${{ hashFiles('package.json') != '' }} && - grep -wq `"build":` package.json + ${{ hashFiles('vendor/${{ inputs.module-repo }}/package.json') != '' }} && + grep -wq `"build":` vendor/${{ inputs.module-repo }}/package.json run: npm run build # step to sync js package files with build files