Skip to content

Commit b4dd7b9

Browse files
authored
Merge pull request #1369 from AtCoder-NoviSteps/#1368
🐛 Try to fix env variable pull failure (#1368)
2 parents 04ee401 + 0806425 commit b4dd7b9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,18 @@ jobs:
9696
DATABASE_URL: ${{ secrets.PREVIEW_DATABASE_URL }}
9797

9898
- name: Pull Vercel Environment Information
99-
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
99+
run: pnpm vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
100100

101101
- name: Build Project Artifacts
102-
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
102+
run: pnpm vercel build --token=${{ secrets.VERCEL_TOKEN }}
103103

104104
- name: Deploy Project Artifacts to Vercel
105105
id: deploy
106-
run: echo "url=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
106+
run: echo "url=\"$(pnpm vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})\"" >> $GITHUB_OUTPUT
107107

108108
- name: Assign staging domain to deployment (if staging branch)
109109
if: ${{ github.ref != 'refs/heads/main' }}
110-
run: vercel alias set ${{ steps.deploy.outputs.url }} ${{ secrets.STAGING_DOMAIN }} --scope=${{ secrets.VERCEL_SCOPE }} --token=${{ secrets.VERCEL_TOKEN }}
110+
run: pnpm vercel alias set ${{ steps.deploy.outputs.url }} ${{ secrets.STAGING_DOMAIN }} --scope=${{ secrets.VERCEL_SCOPE }} --token=${{ secrets.VERCEL_TOKEN }}
111111

112112
production:
113113
if: ${{ github.ref == 'refs/heads/main' }}
@@ -142,10 +142,10 @@ jobs:
142142
DATABASE_URL: ${{ secrets.PRODUCTION_DATABASE_URL }}
143143

144144
- name: Pull Vercel Environment Information
145-
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
145+
run: pnpm vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
146146

147147
- name: Build Project Artifacts
148-
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
148+
run: pnpm vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
149149

150150
- name: Deploy Project Artifacts to Vercel
151-
run: vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
151+
run: pnpm vercel deploy --prod --prebuilt --token=${{ secrets.VERCEL_TOKEN }}

0 commit comments

Comments
 (0)