From ebd00e08f8187f1d0882b48dd1193e3b4f9ac581 Mon Sep 17 00:00:00 2001
From: Ben Elan <no-reply@benelan.dev>
Date: Thu, 7 Dec 2023 11:08:15 -0800
Subject: [PATCH] ci(next): install deps before running npm scripts

---
 .github/workflows/deploy-next.yml | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/deploy-next.yml b/.github/workflows/deploy-next.yml
index fd5c6b789a5..f7d0ddba3ec 100644
--- a/.github/workflows/deploy-next.yml
+++ b/.github/workflows/deploy-next.yml
@@ -28,12 +28,13 @@ jobs:
           GH_TOKEN_FOR_STORYBOOK: ${{ github.actor }}:${{ secrets.ADMIN_TOKEN }}
         run: |
           if [ "$NEXT_RELEASE_ENABLED" == "true" ]; then
+            npm install
+
             if npm run util:is-next-deployable; then
               git config --global user.email "github-actions[bot]@users.noreply.github.com"
               git config --global user.name "github-actions[bot]"
 
-              npm install
-              # version the packages with lerna before building to ensure 
+              # version the packages with lerna before building to ensure
               # the version in the CC source code preamble is correct for deployment
               npm run version:next
               npm run build