From a65ba4854d8a4a316e7d2ea7e139794dea49e145 Mon Sep 17 00:00:00 2001 From: Thomas Dupont Date: Fri, 3 May 2024 10:19:35 +0200 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7df75eb..4753a89 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -19,11 +19,15 @@ jobs: with: node-version: 18.x cache: 'npm' - - run: cd .website && npm ci - - run: cd .website && npm run build:gh-pages - - run: rm -r docs/server - - run: rm docs/3rdpartylicenses.txt - - run: rm docs/prerendered-routes.json - - run: mv -r docs/browser/* docs/ - - run: cp docs/index.html docs/404.html + cache-dependency-path: '**/package-lock.json' + - run: npm ci + working-directory: ./.website + - run: npm run build:gh-pages + working-directory: ./.website + - run: rm -r server 3rdpartylicenses.txt prerendered-routes.json + working-directory: ./docs + - run: mv -r browser/* ./ + working-directory: ./docs + - run: cp index.html 404.html + working-directory: ./docs