Skip to content

Commit 36d2827

Browse files
committed
🐛 fix(ci): resolve rollup optional dependencies issue in test jobs
Fix npm ci issue with rollup linux platform dependencies by ensuring clean package-lock.json regeneration in test-and-lint job. This prevents the 'Cannot find module @rollup/rollup-linux-x64-gnu' error that was causing test failures in the CI environment. - Apply same package-lock.json clean approach to test-and-lint job - Remove complex npm ci fallback logic that was causing optional dependency issues - Ensure consistent dependency installation across all workflow jobs Addresses rollup module resolution failure in CI test environment.
1 parent a654108 commit 36d2827

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
- name: 📥 Install Dependencies
3737
run: |
3838
cd ${{ matrix.package }}
39-
npm ci --include=optional || npm ci --omit=optional || (rm -rf node_modules package-lock.json && npm install --omit=optional)
39+
rm -f package-lock.json
40+
npm install --package-lock-only
41+
npm ci
4042
4143
- name: 🔍 Lint
4244
run: |
@@ -167,7 +169,7 @@ jobs:
167169
run: |
168170
npm run release > semantic-release-output.txt 2>&1
169171
cat semantic-release-output.txt
170-
172+
171173
# Check if a new release was published
172174
if grep -q "Published release" semantic-release-output.txt; then
173175
echo "new-release-published=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)