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