Skip to content

Commit 967cef9

Browse files
committed
Improve CI: upgrade to Node 20, fix Rollup dependency issues
1 parent c881432 commit 967cef9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,20 @@ jobs:
2121
- name: Setup Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: '18'
24+
node-version: '20'
2525
cache: 'npm'
2626

27-
- name: Install dependencies
28-
run: npm ci || npm install
27+
- name: Clean install dependencies
28+
run: |
29+
# Clear npm cache and remove existing files
30+
npm cache clean --force
31+
rm -rf node_modules package-lock.json
32+
33+
# Install dependencies fresh
34+
npm install
35+
36+
# Verify rollup is properly installed
37+
npx rollup --version
2938
3039
- name: Build
3140
run: npm run build

0 commit comments

Comments
 (0)