Chore(runner): split build step into multiple steps

This commit is contained in:
Pieter Vander Vennet 2024-12-09 22:45:09 +01:00
parent 057a32aedd
commit cfccec2a88

View file

@ -37,10 +37,13 @@ jobs:
run: npm run prepare-deploy run: npm run prepare-deploy
shell: bash shell: bash
- name: run tests
- name: Prepare build
run: npm run generate:service-worker && ./scripts/prepare-build.sh
shell: bash
- name: Run tests
run: | run: |
pwd
ls
# This is the same as `npm run test`, but `vitest` doesn't want to run within npm :shrug: # 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" export NODE_OPTIONS="--max-old-space-size=8192"
npm run clean:tests npm run clean:tests
@ -55,6 +58,10 @@ jobs:
npm run clean:tests npm run clean:tests
shell: bash shell: bash
- name: Build files
run: npm run build
- name: Zipping dist file - name: Zipping dist file
run: | run: |
mv dist ${{ github.ref_name }} mv dist ${{ github.ref_name }}