From 7146cea446086f8c06e444248d0cb109bdab725c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cahid=20Arda=20=C3=96z?= <cahidardaooz@hotmail.com>
Date: Mon, 21 Oct 2024 12:07:07 +0300
Subject: [PATCH] ci: add install ci version to vercel deployed tests (#1328)

---
 .github/workflows/tests.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 885415e4..ab0859f3 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -139,6 +139,10 @@ jobs:
         with:
           version: latest
 
+      - name: Install @upstash/redis canary version
+        run: pnpm install @upstash/redis@${{needs.release.outputs.version}}
+        working-directory: examples/vercel-functions-app-router
+
       - name: Deploy
         run: |
           pnpm --dir=examples/vercel-functions-app-router add @upstash/redis@${{needs.release.outputs.version}}
@@ -174,6 +178,10 @@ jobs:
         with:
           version: latest
 
+      - name: Install @upstash/redis canary version
+        run: pnpm install @upstash/redis@${{needs.release.outputs.version}}
+        working-directory: examples/vercel-functions-pages-router
+
       - name: Deploy
         run: |
           pnpm --dir=examples/vercel-functions-pages-router add @upstash/redis@${{needs.release.outputs.version}}