Skip to content

Commit

Permalink
add .vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
yerlantemir committed Aug 9, 2023
1 parent 87e1511 commit 690702d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
node-version: '18.1'

- name: Extract Tag Name
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
run: echo "VERSION=$(git tag --list 'web-v*' --sort=-v:refname | head -n 1)" >> $GITHUB_ENV

- name: Install Yarn
run: npm install -g [email protected]
Expand All @@ -51,8 +51,8 @@ jobs:
- name: Build Frontend Project
run: |
cd frontend
vercel env add NEXT_PUBLIC_VERSION production --token=${{ secrets.VERCEL_TOKEN }}
vercel env set NEXT_PUBLIC_VERSION $VERSION production --token=${{ secrets.VERCEL_TOKEN }}
vercel env rm NEXT_PUBLIC_VERSION production --token=${{ secrets.VERCEL_TOKEN }}
echo $VERSION | vercel env add NEXT_PUBLIC_VERSION production --token=${{ secrets.VERCEL_TOKEN }}
vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Frontend Project to Vercel
Expand Down
11 changes: 11 additions & 0 deletions .vercel/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
> Why do I have a folder named ".vercel" in my project?
The ".vercel" folder is created when you link a directory to a Vercel project.

> What does the "project.json" file contain?
The "project.json" file contains:
- The ID of the Vercel project that you linked ("projectId")
- The ID of the user or team your Vercel project is owned by ("orgId")

> Should I commit the ".vercel" folder?
No, you should not share the ".vercel" folder with anyone.
Upon creation, it will be automatically added to your ".gitignore" file.
7 changes: 7 additions & 0 deletions .vercel/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"projectId": "prj_jbrRfxc7xYnHxNIApM9aYvJGGrtN",
"orgId": "BCElbOT7OfthWbOpwSvfIq6k",
"github": {
"enabled": false
}
}

1 comment on commit 690702d

@vercel
Copy link

@vercel vercel bot commented on 690702d Aug 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.