From 11b7be3a2f857cceaef5d3e4ec9e1eae6e79c825 Mon Sep 17 00:00:00 2001 From: Dominic Saadi Date: Sat, 9 Mar 2024 09:30:40 -0800 Subject: [PATCH] chore(ci): try `yarn rw upgrade -t canary` instead of npx@canary (#10177) https://github.com/redwoodjs/redwood/pull/10176 didn't work, but I did discover that the SSR test project seems to always be one canary behind and completes successfully: https://github.com/redwoodjs/redwood/pull/10176#issuecomment-1986903142. It uses `yarn rw upgrade`. Let's see if that works for RSC too. --- .github/actions/set-up-rsc-project/setUpRscProject.mjs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/actions/set-up-rsc-project/setUpRscProject.mjs b/.github/actions/set-up-rsc-project/setUpRscProject.mjs index 06cadd0158c9..f0c717ec3954 100644 --- a/.github/actions/set-up-rsc-project/setUpRscProject.mjs +++ b/.github/actions/set-up-rsc-project/setUpRscProject.mjs @@ -76,14 +76,15 @@ async function setUpRscProject( console.log(`Creating project at ${rscProjectPath}`) console.log() - await exec('npx', [ - '-y', - 'create-redwood-app@canary', + await exec('yarn', [ + 'create', + 'redwood-app', '-y', '--no-git', rscProjectPath, ]) - await execInProject('yarn') + await execInProject('yarn install') + await execInProject('yarn rw upgrade -t canary') console.log(`Setting up Streaming/SSR in ${rscProjectPath}`) const cmdSetupStreamingSSR = `node ${rwBinPath} experimental setup-streaming-ssr -f`