From 809eb04122d80394d59e6b02b67f889ec338c598 Mon Sep 17 00:00:00 2001 From: Milana Cap Date: Sat, 2 May 2026 22:22:12 +0200 Subject: [PATCH] Update GitHub Actions workflow for test deployment Signed-off-by: Milana Cap --- .github/workflows/test-deploy.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index 6af4b1c..4d7a4c2 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -7,11 +7,17 @@ on: # Review gh actions docs if you want to further define triggers, paths, etc # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on + # Allow running this workflow manually from the Actions tab + workflow_dispatch: + defaults: run: shell: bash working-directory: ./docs +permissions: + contents: write + jobs: test-deploy: name: Test deployment @@ -20,17 +26,15 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/setup-node@v4 with: node-version: 20 cache: npm - - name: Debug paths - run: | - pwd - ls -la - ls -la ./docs - ls -la ./docs/package-lock.json + cache-dependency-path: docs/package-lock.json + - name: Install dependencies run: npm ci - - name: Test build website + + - name: Build website run: npm run build