From febf850f012320f23ebd0bd4d5c71cd03a64e8af Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Thu, 14 Dec 2023 11:23:58 -0500 Subject: [PATCH] fix hashFIles checks --- .github/workflows/module-plugin-test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/module-plugin-test.yml b/.github/workflows/module-plugin-test.yml index 293fc1d..f5eaf15 100644 --- a/.github/workflows/module-plugin-test.yml +++ b/.github/workflows/module-plugin-test.yml @@ -124,18 +124,18 @@ jobs: - name: Setup Registry for Module working-directory: ./vendor/${{ inputs.module-repo }} - if: ${{ hashFiles('package.json') }} + if: ${{ hashFiles('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('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') }} + ${{ hashFiles('package.json') != '' }} && grep -wq `"build":` package.json run: npm run build