From 4a3c419b694f78d0c67cab6550a839426298a24c Mon Sep 17 00:00:00 2001 From: Ghost0159 Date: Thu, 21 Nov 2024 19:45:08 +0100 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b37cf8b..afe25e8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,8 +20,8 @@ jobs: - name: Clean up node_modules and package-lock.json run: | - Remove-Item -Recurse -Force node_modules - Remove-Item package-lock.json + if (Test-Path node_modules) { Remove-Item -Recurse -Force node_modules } + if (Test-Path package-lock.json) { Remove-Item package-lock.json } - name: Install dependencies run: npm install