Include npm install in build

This commit is contained in:
Condorra 2024-10-13 23:32:47 +11:00
parent dd5371a2e3
commit f035f014ed
3 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ set -Eeuo pipefail
export HOME=$(pwd)
export CARGO_HOME=$(pwd)/.cargo
cd wwp-repo
ln -s ../node_modules ./node_modules
ln -s ../target ./target
ln -s ../wwpapp ./dist
@ -13,4 +14,5 @@ echo Running tests
cargo test --target-dir ../target --profile release
echo Building assets
npm install
trunk build --locked --release

View File

@ -1,6 +1,7 @@
FROM rust
RUN apt-get -y update && \
apt-get -y install \
npm \
binaryen \
build-essential \
git \

View File

@ -19,6 +19,7 @@ jobs:
caches:
- path: target
- path: .cargo
- path: node_modules
outputs:
- name: wwpapp
run: