Skip to content

Commit e98ce4c

Browse files
fix: switch Price Scraper workflow from npm to pnpm to match project setup
- Add pnpm/action-setup@v6 step to install pnpm - Switch cache from 'npm' to 'pnpm' for correct lockfile detection - Replace npm ci with pnpm install --frozen-lockfile - Replace npx tsx with pnpm scrape (reuses existing package.json script) Fixes the 'Dependencies lock file is not found' error since package-lock.json is gitignored and pnpm-lock.yaml is the actual lockfile used by this project.
1 parent 3571ee8 commit e98ce4c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/price-scraper.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,22 @@ jobs:
1616
- name: Checkout code
1717
uses: actions/checkout@v4
1818

19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v6
21+
with:
22+
version: latest
23+
1924
- name: Setup Node.js
2025
uses: actions/setup-node@v4
2126
with:
2227
node-version: 22
23-
cache: 'npm'
28+
cache: 'pnpm'
2429

2530
- name: Install dependencies
26-
run: npm ci
31+
run: pnpm install --frozen-lockfile
2732

2833
- name: Run price scraper
29-
run: npx tsx scripts/price-scraper/index.ts
34+
run: pnpm scrape
3035
env:
3136
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
3237
SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }}

0 commit comments

Comments
 (0)