From cfccec2a88049586a353e4f35faec96858b186b7 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 9 Dec 2024 22:45:09 +0100 Subject: [PATCH] Chore(runner): split build step into multiple steps --- .github/workflows/deploy_hosted.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy_hosted.yml b/.github/workflows/deploy_hosted.yml index b401dbeb3..d66bc5346 100644 --- a/.github/workflows/deploy_hosted.yml +++ b/.github/workflows/deploy_hosted.yml @@ -37,10 +37,13 @@ jobs: run: npm run prepare-deploy shell: bash - - name: run tests + + - name: Prepare build + run: npm run generate:service-worker && ./scripts/prepare-build.sh + shell: bash + + - name: Run tests run: | - pwd - ls # This is the same as `npm run test`, but `vitest` doesn't want to run within npm :shrug: export NODE_OPTIONS="--max-old-space-size=8192" npm run clean:tests @@ -55,6 +58,10 @@ jobs: npm run clean:tests shell: bash + + - name: Build files + run: npm run build + - name: Zipping dist file run: | mv dist ${{ github.ref_name }}