File tree 4 files changed +44
-2
lines changed
4 files changed +44
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : " Deploy"
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - published
7
+ push :
8
+ branches :
9
+ - dev
10
+ workflow_dispatch :
11
+
12
+ jobs :
13
+ vercel :
14
+ runs-on : ubuntu-latest
15
+ name : " Deploy Front-End"
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - uses : actions/setup-node@v1
20
+ with :
21
+ node-version : " 14"
22
+ registry-url : https://registry.npmjs.org/
23
+
24
+ - name : " Deploy to Vercel"
25
+ run : |
26
+ prodRun=""
27
+ if [[ ${GITHUB_REF} == "refs/heads/main" ]]; then
28
+ prodRun="--prod"
29
+ fi
30
+
31
+ npx vercel --token ${VERCEL_TOKEN} $prodRun
32
+ env :
33
+ VERCEL_TOKEN : ${{ secrets.VERCEL_TOKEN }}
34
+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
35
+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
Original file line number Diff line number Diff line change 5
5
.env
6
6
package-lock.json
7
7
/client /package-lock.json
8
- yarn.lock
8
+ yarn.lock
9
+ .vercel
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const config = {
3
3
} ;
4
4
5
5
if ( ! process . env . NODE_ENV || process . env . NODE_ENV === 'development' ) {
6
- config . BASE_URL = 'https ://stackoverflow-clone-backend.herokuapp.com ' ;
6
+ config . BASE_URL = 'http ://localhost:5000 ' ;
7
7
}
8
8
9
9
export default config ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "github" : {
3
+ "enabled" : false ,
4
+ "silent" : true
5
+ }
6
+ }
You can’t perform that action at this time.
0 commit comments