Skip to content

Commit

Permalink
[C8 FE*] actions v7
Browse files Browse the repository at this point in the history
  • Loading branch information
RazinSyakib43 committed Aug 27, 2024
1 parent 157658f commit 204d682
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Vercel Production Deployment

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

on:
push:
branches:
Expand All @@ -16,20 +20,20 @@ jobs:
with:
node-version: '20.11.1'

- name: Upgrade npm
run: npm install -g npm@latest
- name: Install Yarn
run: npm install --global yarn@latest

- name: Clean npm Cache
run: npm cache clean --force
- name: Clean Yarn Cache
run: yarn cache clean

- name: Remove Node Modules
run: rm -rf node_modules

- name: Install Dependencies
run: npm install --legacy-peer-deps
run: yarn install --frozen-lockfile

- name: Install Vercel CLI
run: npm install --global vercel@latest
run: yarn global add vercel@latest

- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"builds": [
{
"src": "src/main.tsx",
"use": "@vercel/node"
"use": "@vercel/static"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/src/main.tsx"
"dest": "src/main.tsx"
}
]
}

0 comments on commit 204d682

Please sign in to comment.