File tree Expand file tree Collapse file tree 2 files changed +34
-6460
lines changed Expand file tree Collapse file tree 2 files changed +34
-6460
lines changed Original file line number Diff line number Diff line change 1+ name : Vercel development Deployment
2+ env :
3+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
4+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
5+ on :
6+ push :
7+ branches :
8+ - main
9+ jobs :
10+ Deploy-development :
11+ runs-on : ubuntu-latest
12+ steps :
13+ # INSTALL NODEJS & NPM ON VERCEL
14+ - uses : actions/checkout@v2
15+ - name : Install Node.js
16+ uses : actions/setup-node@v3
17+
18+ - name : Install npm
19+ uses : actions/setup-node@v3
20+ with :
21+ node-version : " 20"
22+ registry-url : " https://registry.npmjs.org/"
23+ # INSTALL DEPENDENCIES
24+ - name : Install dependencies
25+ run : npm install
26+ # INSTALL VERCEL CLI IN SERVER.
27+ - name : Install Vercel CLI
28+ run : npm install --global vercel@latest
29+ - name : Pull Vercel Environment Information
30+ run : vercel pull --yes --environment=development --token=${{ secrets.VERCEL_TOKEN }}
31+ - name : Build Project Artifacts
32+ run : vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
33+ - name : Deploy Project Artifacts to Vercel
34+ run : vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
You can’t perform that action at this time.
0 commit comments