From 33daea14535b9a8d28fe9dc2beb8ead7e49567b9 Mon Sep 17 00:00:00 2001 From: goodroot <9484709+goodroot@users.noreply.github.com> Date: Tue, 15 Oct 2024 09:58:28 -0700 Subject: [PATCH] add netlify npm package if missing --- .github/workflows/preview-build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml index f2caaa89..4995dee4 100644 --- a/.github/workflows/preview-build.yml +++ b/.github/workflows/preview-build.yml @@ -25,6 +25,10 @@ jobs: run: | ls -la + - name: "Install Netlify CLI if missing" + run: which netlify &> /dev/null || npm install netlify-cli -g + shell: bash + - name: Deploy to Netlify uses: jsmrcaga/action-netlify-deploy@v2.0.0 with: