Fix: Use full Node.js image for node-sass compatibility
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Changed from node:20-alpine to node:20 to include Python and build tools required by node-sass native bindings. This resolves the "gyp ERR! find Python" error during npm install.
This commit is contained in:
@@ -5,7 +5,7 @@ name: default
|
|||||||
steps:
|
steps:
|
||||||
# Step 1: Install dependencies and run linting
|
# Step 1: Install dependencies and run linting
|
||||||
- name: test
|
- name: test
|
||||||
image: node:20-alpine
|
image: node:20
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm run lint || echo "⚠ Linting skipped (no lint script found)"
|
- npm run lint || echo "⚠ Linting skipped (no lint script found)"
|
||||||
@@ -15,7 +15,7 @@ steps:
|
|||||||
|
|
||||||
# Step 2: Build for production (to verify it compiles)
|
# Step 2: Build for production (to verify it compiles)
|
||||||
- name: build
|
- name: build
|
||||||
image: node:20-alpine
|
image: node:20
|
||||||
commands:
|
commands:
|
||||||
- npm ci
|
- npm ci
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user