Skip to content

Commit

Permalink
fix hashFIles checks
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Dec 14, 2023
1 parent 113b188 commit febf850
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/module-plugin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit febf850

Please sign in to comment.