Skip to content

Commit 5c893a6

Browse files
Modify npm install steps in GitHub Actions workflow
Updated the dependency installation process to handle optional dependencies and ensure native bindings are installed.
1 parent 270ae83 commit 5c893a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ jobs:
3232

3333
- name: Install dependencies
3434
working-directory: docs
35-
run: npm ci
35+
run: |
36+
rm -rf node_modules package-lock.json
37+
npm install --include=optional --no-audit || npm install --no-audit
38+
# Ensure Linux native binding is installed (fallback for npm bug)
39+
npm install @napi-rs/[email protected] --no-save --no-audit 2>/dev/null || true
3640
3741
- name: Build Next.js site
3842
working-directory: docs

0 commit comments

Comments
 (0)