Skip to content

Commit 56e8401

Browse files
authored
fix(docs): use yarn dlx for Vercel CLI (#121)
1 parent 65fcebf commit 56e8401

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/docs.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ jobs:
1717
cache: yarn
1818
- name: Install dependencies
1919
run: yarn install
20-
- name: Install Vercel CLI
21-
run: yarn global add vercel
2220
- name: Pull Vercel Environment Information
23-
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
21+
run: yarn dlx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
2422
- name: Build Project Artifacts
25-
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
23+
run: yarn dlx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
2624
- name: Deploy Project Artifacts to Vercel
27-
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
25+
run: yarn dlx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,9 @@ jobs:
199199
cache: yarn
200200
- name: Install dependencies
201201
run: yarn install
202-
- name: Install Vercel CLI
203-
run: yarn global add vercel
204202
- name: Pull Vercel Environment Information
205-
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
203+
run: yarn dlx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
206204
- name: Build Project Artifacts
207-
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
205+
run: yarn dlx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
208206
- name: Deploy Project Artifacts to Vercel
209-
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
207+
run: yarn dlx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)