Skip to content

Commit

Permalink
try full path for if hashFiles check
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Dec 14, 2023
1 parent febf850 commit 365242b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/module-plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 365242b

Please sign in to comment.