Skip to content

Commit e2a867b

Browse files
committed
fix: move node-mac-permissions to optionalDependencies for cross-platform CI
- Moved node-mac-permissions from dependencies to optionalDependencies - Updated GitHub Actions workflows to use npm ci --omit=optional - Fixes EBADPLATFORM error on Linux CI runners - Package still installs on macOS but is skipped on other platforms
1 parent c391764 commit e2a867b

File tree

4 files changed

+682
-733
lines changed

4 files changed

+682
-733
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ jobs:
2525
php-version: '8.4'
2626

2727
- name: Install Dependencies
28-
run: |
29-
composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
30-
npm install
28+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
29+
30+
- name: Install Node Dependencies
31+
run: npm ci --omit=optional
3132

3233
- name: Run Pint
3334
run: vendor/bin/pint

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
cache: 'npm'
3333

3434
- name: Install Node Dependencies
35-
run: npm ci
35+
run: npm ci --omit=optional
3636

3737
- name: Install Dependencies
3838
run: composer install --no-interaction --prefer-dist --optimize-autoloader

0 commit comments

Comments
 (0)