Skip to content

Commit 12a2691

Browse files
committed
chore: update CI
1 parent f986e07 commit 12a2691

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ jobs:
3939
with:
4040
path: "./deploy.json"
4141
prop_path: "${{ steps.extract_branch.outputs.branch }}.alias"
42+
- name: "Validate Vercel token"
43+
run: |
44+
if [ -z "$VERCEL_TOKEN" ]; then
45+
echo "VERCEL_TOKEN is not set. Please add it as a GitHub secret."
46+
exit 1
47+
fi
4248
- name: "Install vercel"
4349
run: npm i -g vercel
4450
- name: "Deploy to vercel"

.github/workflows/pull-requests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
- uses: actions/setup-node@v4
1313
with:
1414
node-version: 18
15+
- name: "Validate Vercel token"
16+
run: |
17+
if [ -z "$VERCEL_TOKEN" ]; then
18+
echo "VERCEL_TOKEN is not set. Please add it as a GitHub secret."
19+
exit 1
20+
fi
1521
- name: "Install vercel"
1622
run: npm i -g vercel
1723
- name: "Deploy to vercel"

0 commit comments

Comments
 (0)