chore: fix npm optional dependencies bug in CI
Remove package-lock.json and node_modules before install to properly handle optional dependencies for rollup, lightningcss, and tailwindcss native bindings on Linux x64 platform as recommended by npm.
This commit is contained in:
8
.github/workflows/pr-check.yml
vendored
8
.github/workflows/pr-check.yml
vendored
@@ -16,15 +16,11 @@ jobs:
|
|||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "20"
|
node-version: "20"
|
||||||
cache: "npm"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Fix optional dependencies
|
|
||||||
run: |
|
run: |
|
||||||
npm install rollup --force
|
rm -rf node_modules package-lock.json
|
||||||
npm install lightningcss --force
|
npm install
|
||||||
|
|
||||||
- name: Run ESLint
|
- name: Run ESLint
|
||||||
run: npx eslint .
|
run: npx eslint .
|
||||||
|
|||||||
Reference in New Issue
Block a user