Use prepare instead of build as script

The prepare script runs before publishing a package, after installation
of a package from source, and when running npm install without
arguments in the repository.  These are the times where a build of the
web interface files are required to make the web interface work and
removes a manual step from using the package(s). The "build" script on
the other hand is never automatically invoked by npm.
This commit is contained in:
Hornwitser committed 2022-06-05 16:13:53 +02:00
1 parent 2973485321
commit 4d5597a1da
10 files changed
+9 -13

No files matched your search

-1
View File
@@ -25,7 +25,6 @@ jobs:
- run: wget -q -O factorio.tar.gz https://www.factorio.com/get-download/latest/headless/linux64 && tar -xf factorio.tar.gz && rm factorio.tar.gz
- run: node packages/lib/build_mod --source-dir packages/slave/lua/clusterio_lib --output-dir temp/test/sharedMods
- run: wget -q -O temp/test/sharedMods/subspace_storage_1.99.8.zip -L https://github.com/clusterio/subspace_storage/releases/download/1.99.6/subspace_storage_1.99.8.zip
- run: pnpm run -r --if-present build
- name: Run tests
if: ${{ matrix.node-version != '12.x' }}
run: pnpm test