Skip to content

Commit

Permalink
ci: try using npm instead of pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamedaly committed Aug 30, 2024
1 parent d41c482 commit 25e897d
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
on:
push:
branches:
- '**'
- "**"

jobs:
deploy:
Expand All @@ -26,32 +26,15 @@ jobs:
forge build --sizes
forge test -vvv
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9

- name: Install dependencies and Next.js
run: |
pnpm install
if ! grep -q '"next":' package.json; then
pnpm add next@latest
fi
- name: Install Vercel CLI
run: pnpm install --global vercel@latest
run: npm install --global vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }} --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
env:
NODE_OPTIONS: '--max-old-space-size=8192'
NODE_OPTIONS: "--max-old-space-size=8192"
run: vercel build ${{ github.ref == 'refs/heads/main' && '--prod' || '' }} --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
Expand Down

0 comments on commit 25e897d

Please sign in to comment.