From 61743ab4c4420bf69bdbeb596db4da306abcd667 Mon Sep 17 00:00:00 2001 From: Ghost0159 Date: Thu, 21 Nov 2024 19:43:50 +0100 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 03774be..b37cf8b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,11 +18,19 @@ jobs: node-version: 20 cache: 'npm' - - name: Install dependencies and build + - name: Clean up node_modules and package-lock.json run: | - if (Test-Path dist) { Remove-Item -Recurse -Force dist } - npm install - npm run build + Remove-Item -Recurse -Force node_modules + Remove-Item package-lock.json + + - name: Install dependencies + run: npm install + + - name: Install Rollup optional dependency + run: npm install @rollup/rollup-win32-x64-msvc + + - name: Build the project + run: npm run build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3