Skip to content

Commit 1eb21aa

Browse files
committed
fix: update release workflow for PHP 8.3 and npm workaround
- Update PHP version from 8.2 to 8.3 to match NativePHP requirements - Remove npm cache since we delete package-lock.json - Apply npm optional dependencies workaround in build process
1 parent 3d6dee0 commit 1eb21aa

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup PHP
2525
uses: shivammathur/setup-php@v2
2626
with:
27-
php-version: '8.2'
27+
php-version: '8.3'
2828
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite, dom, filter, gd, json, mbstring, pdo
2929
tools: composer:v2
3030
coverage: none
@@ -33,7 +33,6 @@ jobs:
3333
uses: actions/setup-node@v4
3434
with:
3535
node-version: '22'
36-
cache: 'npm'
3736

3837
- name: Get version
3938
id: version
@@ -54,7 +53,11 @@ jobs:
5453
run: composer install --no-interaction --no-dev --prefer-dist --optimize-autoloader
5554

5655
- name: Install NPM dependencies
57-
run: npm ci
56+
run: |
57+
# Workaround for npm optional dependencies bug
58+
# https://github.com/npm/cli/issues/4828
59+
rm -rf node_modules package-lock.json
60+
npm install --omit=dev
5861
5962
- name: Copy .env file
6063
run: cp .env.example .env

0 commit comments

Comments
 (0)