Update lint-build.yml

This commit is contained in:
Mark Dumay
2023-08-24 15:24:46 +02:00
committed by GitHub
parent edc30ad0cd
commit 0f82471dab

View File

@@ -29,8 +29,9 @@ jobs:
cache: 'npm' cache: 'npm'
cache-dependency-path: '**/package-lock.json' cache-dependency-path: '**/package-lock.json'
- name: Perform clean install of npm # [24/AUG/23] Adjusted from npm ci to prevent EBADPLATFORM error due to fsevents
run: npm ci - name: Install npm
run: npm i
- name: Lint the source files - name: Lint the source files
run: npm run lint run: npm run lint
@@ -57,8 +58,15 @@ jobs:
cache: 'npm' cache: 'npm'
cache-dependency-path: '**/package-lock.json' cache-dependency-path: '**/package-lock.json'
# [24/AUG/23] Adjusted from npm ci for non-macOS to prevent EBADPLATFORM error due to fsevents
- name: Perform clean install of npm - name: Perform clean install of npm
run: npm ci run: |
if [ "$RUNNER_OS" == "macOS" ]; then
npm ci
else
npm i
fi
shell: bash
# Cache Hugo cachedir and resourcedir (configured in config/ci/hugo.toml) for each OS # Cache Hugo cachedir and resourcedir (configured in config/ci/hugo.toml) for each OS
# No additional cache invalidation is needed, Hugo uses checksums itself # No additional cache invalidation is needed, Hugo uses checksums itself