Skip to content

Commit 5016ea6

Browse files
authored
Merge pull request #31 from jpcmf/feat/github-actions-vercel
feat: Add vercel development deployment
2 parents f86aec2 + bd0b615 commit 5016ea6

File tree

4 files changed

+36
-6461
lines changed

4 files changed

+36
-6461
lines changed

.github/workflows/main.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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 }}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ And that's it! Your `SkateHub Frontend` should now be up and running locally on
8080

8181
### 2024
8282

83+
- 2024-11-08 - Add vercel development deployment configuration [#31](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/31) _(v0.1.20)_
8384
- 2024-11-06 - Add the `forgot-password` button [#25](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/25) _(v0.1.19)_
8485
- 2024-11-06 - Upgrade libraries [#23](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/23) _(v0.1.18)_
8586
- 2024-11-06 - Create the `reset password` page [#21](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/21) _(v0.1.17)_

0 commit comments

Comments
 (0)