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 }}