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